Skip to content

jstransformers/jstransformer-es6-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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