1.0.1 • Published 9 years ago

jstransformer-es6-template v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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