duo-ractive
v0.1.2
Published
Ractive.js plugin for Duo
Downloads
5
Readme
duo-ractive
Ractive.js plugin for Duo
Install
$ npm install --save duo-ractive
Usage
CLI
$ duo --use duo-ractive
API
var Duo = require('duo');
var ractive = require('duo-ractive');
var duo = Duo(__dirname)
.entry('index.js') // JS file that requires a .html template
.use(ractive());
duo.run(function (err, file) {
if (err) throw err;
// file => will include compiled Ractive templates
});