npm.io
2.1.0 • Published 6 years ago

jsreport-handlebars

Licence
LGPL
Version
2.1.0
Deps
0
Size
13 kB
Vulns
0
Weekly
0
Stars
2

jsreport-handlebars

NPM Version Build Status

handlebars 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.

{
  template: { content: '...', recipe: '...', engine: 'handlebars' }
}

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-handlebars')())