jstransformer-lodash
Lodash support for JSTransformers.
Last updated 9 years ago by robloach .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jstransformer-lodash 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.3.2                                ...           latest (9 years ago)

6 Versions

  • 0.3.2                                ...           9 years ago
  • 0.3.1                                ...           10 years ago
  • 0.3.0                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |