How to use "childTemplate" in nodejs
I have my own node server I generate report more or less like in the following example :
I try to use "childTemplate"
- I added "jsreport.use(require('@jsreport/jsreport-child-templates')())"
- In my primary HTML I add the following
I got an error:
"'Error when evaluating engine handlebars for template anonymous
Engine must be specified'"
- What "main" should be? an HTML ? or a file that behaves like the example in https://www.npmjs.com/package/@jsreport/jsreport-core
and if so how should I use it.
The child template requires the template to be stored in the template store. So it typically requires you to start jsreport studio and define your workspace.