Chapter 7. Web application templating
This chapter covers
- Organizing applications with templating
- Creating templates by using Embedded JavaScript
- Learning minimalist templating with Hogan
- Using Pug to create templates
In chapters 3 and 6, you learned some basics about templates in Express applications in order to create views. In this chapter, youâll focus exclusively on templating, learning how to use three popular template engines, and how to use templating to keep any web applicationâs code clean by separating logic from presentation markup.
If youâre familiar with templating and the Model-View-Controller (MVC) pattern, you can skim through to section 7.2, where youâll start learning about the template engines detailed in ...
Get Node.js in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.