Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lund-org/cherry-handlebars-connector

A plugin to use handlebars as the html renderer
https://github.com/lund-org/cherry-handlebars-connector

cherry cherry-handlebars-connector connector handlebars html-renderer

Last synced: 3 months ago
JSON representation

A plugin to use handlebars as the html renderer

Awesome Lists containing this project

README

        

# Cherry Handlebars Connector

[![Build Status](https://travis-ci.com/Lund-Org/cherry-handlebars-connector.svg?branch=master)](https://travis-ci.com/Lund-Org/cherry-handlebars-connector) [![Maintainability](https://api.codeclimate.com/v1/badges/88259eabd94df27161bd/maintainability)](https://codeclimate.com/github/Lund-Org/cherry-handlebars-connector/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/88259eabd94df27161bd/test_coverage)](https://codeclimate.com/github/Lund-Org/cherry-handlebars-connector/test_coverage)

A plugin to use [handlebars](https://github.com/wycats/handlebars.js/) as the html renderer in cherry 🍒

## Installation

Use the package manager [npm](http://npmjs.com) to install Cherry Handlebars Connector.

```bash
npm install @lund-org/cherry-handlebars-connector
```

## Usage

Checkout the example in the [example folder of cherry](https://github.com/Lund-Org/cherry/tree/master/example/02-multiple-response-type/).
Of course, you need a cherry app to use this connector :

```javascript
const Cherry = require('@lund-org/cherry')
const CherryHandlebarsConnector = require('@lund-org/cherry-handlebars-connector')

const options = {
...
plugins: [CherryHandlebarsConnector]
...
}

const cherry = new Cherry()
cherry.configure(options)
cherry.start(options)
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://github.com/Lund-Org/cherry-handlebars-connector/blob/master/LICENSE)