An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# jstransformer-consolidate

[Consolidate.js](https://github.com/tj/consolidate.js) support for [JSTransformers](http://github.com/jstransformers).

[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-consolidate/master.svg)](https://travis-ci.org/jstransformers/jstransformer-consolidate)
[![Coverage Status](https://img.shields.io/codecov/c/github/jstransformers/jstransformer-consolidate/master.svg)](https://codecov.io/gh/jstransformers/jstransformer-consolidate)
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-consolidate/master.svg)](http://david-dm.org/jstransformers/jstransformer-consolidate)
[![NPM version](https://img.shields.io/npm/v/jstransformer-consolidate.svg)](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