jstransformer-es6-template

1.0.1 • Public • Published

jstransformer-es6-template The MIT License

es6-template support for JSTransformers

travis build status coverage status dependency status npmjs.com

Install

npm install jstransformer-es6-template --save

Usage

For more use-cases see the tests in test folder or see the JSTransformer API for more details.

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!'

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

The MIT License

Package Sidebar

Install

npm i jstransformer-es6-template

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vanchoy
  • tunnckocore