global javascript file and handlebar helpers



  • This thread is so old and no longer relevant and solution needs to be updated.

    I've tried the following; but it's throwing error:

    And there's no "assets" folder, there's assets in each folder.



  • @bjrmatos any solution? I am repeating myself for a lot of functions, does the module.export should work for these registered helpers?



  • @Samerkassem I had the same problem. My solution was to add global helpers.js as asset, not as script and activate "shared helpers attached to each template".

    0_1606910506501_upload-917c1f71-b831-42da-ab62-77bc5716232b
    0_1606910579395_upload-dd12b5b7-be77-4f7c-ac71-80fce6ed098e


Log in to reply
 

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