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 Build a Simple Dynamic Site with Node.js!
You have completed Build a Simple Dynamic Site with Node.js!
Preview
We're reading the template files in. Now let's replace our {{placeholders}} with actual values.
Treehouse Videos
Node.js APIs Used
JavaScript 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
there's one last thing to do and that's to
replace the placeholders with actual data.
0:00
So, all we need to do is this one thing,
but
0:01
this is pretty much broken up into several
different bits.
0:04
So, I recommend creating a function if it
gets a little bit too complicated.
0:08
So up here, I'm gonna create a new
0:15
function called mergeValues.
0:19
And in there, we want to merge the values
with the content.
0:24
[BLANK_AUDIO]
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