How to use "childTemplate" in nodejs
-
Hi
I have my own node server I generate report more or less like in the following example :
https://www.npmjs.com/package/@jsreport/jsreport-coreI try to use "childTemplate"
- I added "jsreport.use(require('@jsreport/jsreport-child-templates')())"
- In my primary HTML I add the following
"{{childTemplate "/modules/caseDetails/main"}}"
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.
Thanks
-
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.