1.1.0 • Published 9 years ago

dotify v1.1.0

Weekly downloads
13
License
MIT
Repository
github
Last release
9 years ago

Dotify

Browserify transform plugin for doT.js.

Installation

npm install dotify

Usage

In main.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

License

MIT

1.1.0

9 years ago

1.0.0

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago