jstransformer-consolidate

0.4.0 • Public • Published

jstransformer-consolidate

Consolidate.js support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-consolidate

API

var consolidate = require('jstransformer')(require('jstransformer-consolidate'))
 
var options = {
  engine: 'handlebars'
};
var locals = {
  title: 'Hello World!'
};
consolidate.renderAsync('<h1>{{title}}</h1>', options, locals, function (err, result) {
  result.body
  //=> '<h1>Hello World!</h1>'
});

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i jstransformer-consolidate

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

5.16 kB

Total Files

5

Last publish

Collaborators

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