Home

Awesome

jstransformer-es6-template

es6-template support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-es6-template

API

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