dustjs-express
Dust.js view engine for Express.
Installation
npm install dustjs-express
Usage
var express = ;var app = ;var dustjsExpress = ; // directory where to look for templatesapp;// you can pass an array of directories tooapp;app;app; // enable caching of templates to avoid reading from// disk at each request (use in production)app; app;
You can use any file extension for templates, just specify it in the following way:
// use .tpl as templates extensionapp;app;
Multiple template directories
You can specify multiple directories where to look for templates:
app;
Templates are looked up in the order they occur in the array. To avoid problems it's preferable for templates to have different names, even if they are in different directories.