O'Reilly logo

Node.js in Action by Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required