jstransformer-lodash

0.3.2 • Public • Published

jstransformer-lodash

Lodash Template support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-lodash

API

var lodash = require('jstransformer')(require('jstransformer-lodash'));
var opts = {};
 
lodash.render('<h1>Hello <%= place %>!</h1>', opts, {place: 'world'}).body;
//=> '<h1>Hello world!</h1>'
 
var promise = lodash.renderFileAsync('./path/to/hello.lodash', {}, {place: 'world'});
promise.then(function(data) {
  console.log(data.body);
  //=> '<h1>Hello world!</h1>'
});

License

MIT

/jstransformer-lodash/

    Package Sidebar

    Install

    npm i jstransformer-lodash

    Weekly Downloads

    7

    Version

    0.3.2

    License

    MIT

    Last publish

    Collaborators

    • stoeffel
    • hemanth
    • timothygu
    • calebeby
    • vanchoy
    • tunnckocore