Skip to content

jsreport/jsreport-sample-template

Repository files navigation

⚠️ This repository has been moved to the monorepo jsreport/jsreport

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
  }
}

About

jsreport extension which creates a sample template at the first run

Resources

License

Stars

Watchers

Forks

Packages

No packages published