⚠️ This repository has been moved to the monorepo jsreport/jsreport
jsreport extension which creates sample templates at the first run
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}));
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
}
}