jstransformer-handlebars

1.2.0 • Public • Published

jstransformer-handlebars

Handlebars.js support for JSTransformers.

Build Status Coverage Status Dependency Status 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>'

In addition to the standard Handlebars compile options, the render method can be passed objects for partials, helpers and decorators (deprecated).

License

MIT

/jstransformer-handlebars/

    Package Sidebar

    Install

    npm i jstransformer-handlebars

    Weekly Downloads

    2,720

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    4.48 kB

    Total Files

    5

    Last publish

    Collaborators

    • robloach
    • forbeslindesay
    • stoeffel
    • hemanth
    • timothygu
    • calebeby
    • webketje