Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Express Basics!
You have completed Express Basics!
Preview
Let's walk through some Pug basics.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
it is the templating engine of choice for
this course.
0:00
Let's get a feel for how Pug works.
0:01
Pug is a language that compiles or
translates to HTML.
0:04
Instead of using HTML opening and closing
tags to describe elements, you just type
0:08
the tag name a space, and then the content
that you want to appear inside that tag.
0:14
For example, if I want to
render HTML heading number one,
0:20
I'd use the following code.
0:24
On the left, you can see the line of
Pug and on the right equivalent HTML.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up