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

Appendix C. Extending and configuring Express

Express does a lot right out of the box, but extending Express and tweaking its configuration can simplify development and allow it to do more.

C.1. Extending Express

Let’s start by looking at how to extend Express. In this section, you’ll learn how to

  • Create your own template engines
  • Take advantage of community-created template engines
  • Improve your applications using modules that extend Express

C.1.1. Registering template engines

Engines may provide Express support out of the box by exporting an __express method. But not every engine will provide this, or you may want to write your own engines. Express facilitates this by providing the app.engine() method. In this section, we’ll take a ...

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