https://github.com/jsreport/jsreport-handlebars
jsreport handlebars templating engine
https://github.com/jsreport/jsreport-handlebars
Last synced: about 1 year ago
JSON representation
jsreport handlebars templating engine
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-handlebars
- Owner: jsreport
- License: lgpl-3.0
- Created: 2015-11-05T14:55:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:56:26.000Z (almost 5 years ago)
- Last Synced: 2025-04-03T12:02:29.997Z (about 1 year ago)
- Language: JavaScript
- Size: 194 KB
- Stars: 2
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--
# jsreport-handlebars
[](https://npmjs.com/package/jsreport-handlebars)
[](https://travis-ci.org/jsreport/jsreport-handlebars)
[handlebars](http://handlebarsjs.com/) templating engine for jsreport.
See the docs https://jsreport.net/learn/handlebars
## Installation
> npm install jsreport-handlebars
## Usage
To use `handlebars` in for template rendering set `template.engine=handlebars` in the rendering request.
```js
{
template: { content: '...', recipe: '...', engine: 'handlebars' }
}
```
## jsreport-core
You can apply this extension also manually to [jsreport-core](https://github.com/jsreport/jsreport-core)
```js
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-handlebars')())
```