express-typed-templates
Designed for Express 4.x
Using the least configuration possible, this middleware for express selects the best template-engine for an client-acceptable response type.
Any requests for content-types you haven't set a template engine for will return a HTTP 406 Not Acceptable response.
Installation
Simply navigate to your project using your favourite command prompt, and type:
npm install --save express-typed-templates
This package has the amazing dependency count of 0 (yes, zero), so it should be a fast install.
How To Use
This is designed as express middleware, so it exposes a function that can be
used anywhere in express such as app.use
or router.use
.
var app = typedTemplates = ; // No fancy config, just set it and forget itapp