Browserify transform plugin for doT.js
npm install dotifyBrowserify transform plugin for doT.js.
npm install dotify
In main.js:
``js
var tpl = require('./template.dot');
var output = tpl({ message: 'Hello World!' });
console.log(output);
`
Then compile the scripts:
$ browserify -t dotify main.js
You can also pass options to the doT.js compiler, for example to preserve
whitespace:
$ browserify -t [ dotify --no-strip ] main.js`
MIT