Child template generates error



  • I am implementing a for loop which needs to generate a list of child templates. Something akin to the example in the documentation
    {{#each students}}
    {{childTemplate "student"}}
    {{/each}}

    However, when I render the document it returns this error:
    Error while executing templating engine. Missing helper: "childTemplate"
    Error: Missing helper: "childTemplate"

    What do I need to do to add the child templates?

    Thanks!



  • You likely use jsrepotr v2 and the childTemplate helper was introduced in the v3
    Please refer to this documentation when using jsreport v2
    https://jsreport.net/learn/child-templates?version=2.11.0


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.