Use Underscore templates easily in Express.
This package is registered in npm as
underscore-express, so a simple...
npm install underscore-express
...will do it.
In your Express app setup...
// To use the default 'tmpl' extension...app;// Or set your own...app 'ut';
...and that's it!
underscore-express comes with a baked in include method. Here's an example...
<%= include('header') %>Welcome to my homepage!<%= include('footer') %>
Header!Welcome to my homepage!
include is relative to the file it is called from. Feel free to use relative paths like