Skip to Main Content
Node.js in Action
book

Node.js in Action

by TJ Holowaychuk, Nathan Rajlich, Mike Cantelon, Marc Harter
October 2013
Intermediate to advanced content levelIntermediate to advanced
416 pages
13h 2m
English
Manning Publications
Content preview from Node.js in Action

Chapter 11. Web application templating

This chapter covers

  • How templating helps keep applications organized
  • Creating templates using Embedded JavaScript
  • Learning minimalist templating with Hogan
  • Using Jade to create templates

In chapters 8 and 9, you learned some templating basics to use with the Express framework 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 11.2, where you’ll start learning about the template engines we’ll detail ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Node.js

Get Programming with Node.js

Jon Wexler
Beginning Node.js

Beginning Node.js

Basarat Ali Syed
Node.js in Action, Second Edition

Node.js in Action, Second Edition

Bradley Meck, Nathan Rajlich, TJ Holowaychuk, Mike Cantelon, Tim Oxley, Alex Young

Publisher Resources

ISBN: 9781617290572Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link