https://github.com/jstransformers/jstransformer-consolidate
Consolidate.js support for JSTransformers.
https://github.com/jstransformers/jstransformer-consolidate
Last synced: over 1 year ago
JSON representation
Consolidate.js support for JSTransformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-consolidate
- Owner: jstransformers
- License: mit
- Created: 2015-07-06T14:23:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T00:39:03.000Z (over 5 years ago)
- Last Synced: 2025-02-23T10:20:40.953Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-consolidate
- Size: 66.4 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-consolidate
[Consolidate.js](https://github.com/tj/consolidate.js) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-consolidate)
[](https://codecov.io/gh/jstransformers/jstransformer-consolidate)
[](http://david-dm.org/jstransformers/jstransformer-consolidate)
[](https://www.npmjs.org/package/jstransformer-consolidate)
## Installation
npm install jstransformer-consolidate
## API
```js
var consolidate = require('jstransformer')(require('jstransformer-consolidate'))
var options = {
engine: 'handlebars'
};
var locals = {
title: 'Hello World!'
};
consolidate.renderAsync('
{{title}}
', options, locals, function (err, result) {
result.body
//=> 'Hello World!
'
});
```
## License
MIT