Skip to content

Files

Latest commit

Sep 11, 2021
ff979aa · Sep 11, 2021

History

History
30 lines (20 loc) · 1.17 KB

File metadata and controls

30 lines (20 loc) · 1.17 KB

jstransformer-handlebars

Handlebars.js support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-handlebars

API

var handlebars = require('jstransformer')(require('jstransformer-handlebars'));

var locals = {
  name: "World"
};

handlebars.render('<h1>Hello {{name}}!</h1>', {}, locals).body
//=> '<h1>Hello World!</h1>'

License

MIT