https://github.com/jstransformers/jstransformer-es6-template
es6-template support for JSTransformers
https://github.com/jstransformers/jstransformer-es6-template
Last synced: 8 months ago
JSON representation
es6-template support for JSTransformers
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-es6-template
- Owner: jstransformers
- License: mit
- Created: 2015-09-22T18:06:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T00:23:58.000Z (about 6 years ago)
- Last Synced: 2025-10-08T03:34:13.802Z (8 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-es6-template
[es6-template](https://github.com/tunnckoCore/es6-template) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-es6-template)
[](https://codecov.io/gh/jstransformers/jstransformer-es6-template)
[](http://david-dm.org/jstransformers/jstransformer-es6-template)
[](https://greenkeeper.io/)
[](https://www.npmjs.org/package/jstransformer-es6-template)
## Installation
```
npm install jstransformer-es6-template
```
## API
```js
var es6template = require('jstransformer')(require('jstransformer-es6-template'));
var locals = {
place: 'world',
user: {
name: 'Charlike'
}
};
es6template.render('Hello ${place} and ${user.name}!', locals).body
//=> 'Hello world and Charlike!'
```
## License
MIT