Require DustJS templates with webant
npm install webant-handler-dustjs_Require dustjs-linkedin templates with webant_
$ npm install webant-handler-dustjs
Ensure the dustjs handler is present in your webant configuration file. For example:
```json``
{
"entry":"src/js/main.js",
"dest":"build/main.js",
"handlers":["dustjs"]
}
You may now require dustjs files:
``javascript``
var tmpl = require("./path/to/template.dust");
var html = tmpl({name:"Jane Doe"});
Need access to the dust object?
`javascript``
var dust = require("{dustjs/runtime}");
Ensure phantomjs is installed and in your PATH, then run:
$ npm test