childTemplate ... need assist in simply making this work
-
I am simply trying a proof of concept here and have a very basic playground set up located here - https://playground.jsreport.net/w/dqueubed/vkEiLVmu.
I have 2 pages. From page 1 I am trying to add childTemplate 'page 2' to the bottom. Getting error 'childTemplate doesn't match each' when I know it does ... I can run it standalone.
What am I missing? Thanks in advance.
-
The problem has not much to do with child templates, because this is invalid handlebars syntax
{{#each employees}} {{#childTemplate "dq_pg2"}} {{/each}}
Every block helper needs to be closed, like this
{{#each employees}} {{#childTemplate "dq_pg2"}}{{/childTemplate}} {{/each}}
or you can simply call
childTemplate
helper like this{{#each employees}} {{childTemplate "dq_pg2"}} {{/each}}
-
aaahhhh ... <facepalm>. I knew it was something basic. Thanks so much @jan_blaha ... very much appreciated.