Shared js files
-
Good day to you. Could you explain please, if it is possible to attach shared js files to templates? I do not mean the handlebars or other helpers, but pieces of shared js code which will be avaiable in the context of beforeRender method.
-
You can use an asset for it.
https://jsreport.net/learn/assets{#asset moment.js} function beforeRender(req, res) { moment().... }
-
It worked, thank you!