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 include Pug in the Express App.
Express Documentation on Templating
Starter Code Snippet from Video
doctype html
html(lang="en")
head
title Landing Page
body
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
you're ready to go.
0:00
Let me show you how that's done.
0:00
[SOUND] To use Pug in our app,
we'll follow these steps.
0:01
First, we'll download Pug from npm.
0:06
Then, we'll write a few lines of
code in the app.js file to let
0:10
Express know we're gonna use Pug.
0:15
After that we'll create
the template files.
0:17
Finally we'll render and
serve the templates to the user.
0:20
Let's get started.
0:25
To use Pug in our application,
we first need to install it.
0:28
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