jsreport-sample-template

2.6.1 • Public • Published

jsreport-sample-template

NPM Version Build Status

jsreport extension which creates sample templates at the first run

jsreport-core

If you use jsreport-core, you can apply this extension manually and pass configuration to it directly:

var jsreport = require('jsreport-core')();
jsreport.use(require('jsreport-sample-template')({createSamples: true}));

Configuration

Use sample-template key in the standard jsreport config file.

Available options:

"extensions": {
  "sample-template": {
    /* when true, it will create defined samples*/
    "createSamples": true,
    /*
      by default samples will be created only on the first run of your jsreport installation,
      when this option is true it will allow to create the samples in the next run
      (useful when you want to install a new version of this extension and want to create the new examples that come with it)
    */
    "forceCreation": false
  }
}

Readme

Keywords

Package Sidebar

Install

npm i jsreport-sample-template

Weekly Downloads

353

Version

2.6.1

License

LGPL

Unpacked Size

99.5 kB

Total Files

12

Last publish

Collaborators

  • pofider
  • bjrmatos