https://github.com/jstransformers/jstransformer-jst
jst support for JSTransformers
https://github.com/jstransformers/jstransformer-jst
Last synced: about 1 year ago
JSON representation
jst support for JSTransformers
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-jst
- Owner: jstransformers
- License: mit
- Created: 2015-08-06T23:01:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T02:40:38.000Z (about 6 years ago)
- Last Synced: 2025-02-23T10:22:22.450Z (over 1 year ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jstransformer-jst
[jst](https://www.npmjs.com/package/jst) support for [JSTransformers](http://github.com/jstransformers)
[](https://travis-ci.org/jstransformers/jstransformer-jst)
[](https://codecov.io/gh/jstransformers/jstransformer-jst)
[](http://david-dm.org/jstransformers/jstransformer-jst)
[](https://www.npmjs.org/package/jstransformer-jst)
## Installation
```
npm install jstransformer-jst --save
```
## API
```js
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'
```
## License
MIT