Toffee support for JSTransformers.
npm install jstransformer-toffee
var toffee = require('jstransformer')(require('jstransformer-toffee'));
var opts = {};
toffee.render('<h1>Hello #{place}!</h1>', opts, {place: 'world'}).body;
//=> '<h1>Hello world!</h1>'
var promise = toffee.renderFileAsync('./path/to/hello.toffee', opts, {place: 'world'});
promise.then(function(data) {
console.log(data.body);
//=> '<h1>Hello world!</h1>'
});
MIT