Guide to Templating
Templating libraries make it easier to build and maintain your app. They give you the ability to dynamically insert data, iterate over arrays, and break your markup into smaller reusable components.
There are lots of different templating options out there. Remix on of these apps and start building something amazing!
5 Projects
Mustache is really approachable and easy.
It's syntax uses double curly braces (which kind of looks like Mustaches! I see it!)
This app built on top of Hello Express.
Uses Mustache
This app shows you how to use Handlebars.
Handlebars is based off of Mustache with some added funcationality, so the syntax is almost the same and it's easy to switch between the two.
This app built on top of Hello Express.
Uses Handlebars
Pug (formerly known as Jade) is another great templating choice.
The syntax is super minimal (no tags!)
This app is built on top of Hello Express.
Uses Pug
ejs is another popular templating language.
If you use Javascript, the ejs syntax will seem really familiar.
This app built on top of Hello Express.
Uses ejs