How to call function from template script file to html template?



  • Hi sir,

    Is it possible to call function from script file to html handlebar rather than calling function from helper function.?



  • Do you mean if you can call a function from the helpers' section inside template content HTML <script></script>?

    No you can't. It's a different context. The helpers generate content and dynamically assemble final HTML that is later evaluated in chrome. You can think of about templating engines as a pre-process step.


Log in to reply
 

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