jstransformer-jst
v0.2.0
Published
jst support for JSTransformers
Downloads
3
Readme
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.