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
Using Response.render is where we'll get to start putting dynamic data into the Express app!
Express Documentation
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
sending a fixed HTML
string to the browser.
0:00
The real power of templates comes into
play when you use variables to inject
0:01
customized content, such as a user's name,
a list of shopping cart items, or
0:05
text of a blog post.
0:10
In this video,
we'll create a flash card template.
0:12
The text for this title here, and
the hint are not in the template.
0:15
They are being supplied to
the template through variables,
0:22
which are injected into
the template as it's rendered.
0:25
Let's see how this is done.
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