common template helpers



  • Similar to this method of using an asset to store common script, is there a way to define and manage a common set of helper functions that you can include to avoid cut'n'paste (and having to edit three different places when you realized you'd made a mistake!)



  • d'oh ... on the subject of "..made a mistake" ... I'd created the asset with the helpers in, and referenced it as

    {#asset common-handlers.js @encoding=utf8}
    

    but ... I had a typo in the filename which was why it wasn't finding it. leaving this here so anyone else trying gets to search and learn from my stupidity ;)


Log in to reply
 

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