0.2.0 • Published 9 years ago
jstransformer-jst v0.2.0
jstransformer-jst
jst support for JSTransformers
Install
npm install jstransformer-jst --save
Usage
For more use-cases see the tests in test folder or see the JSTransformer API for more details.
var jst = require('jstransformer')(require('jstransformer-jst'));
var render = jst.compile('Hello {{ name }}').fn;
render({name: 'world'}) //=> 'Hello world'
jst.render('Hello {{ name }}', {name: 'world'}).body
//=> 'Hello world'
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.