No neither of those are what I am taking about. I have a server-side js library with a bunch of util methods I'd like to call from other scripts. These are not used in the templates themselves, but to generate data for the template.
R
Posts made by rodriguise
-
RE: Access other scripts
-
Access other scripts
The docs say you can have global scripts, but how do you access functions defined in those scripts? I tried to add them to the req object in the global script beforeRender, but that didn't stick. Any help is appreciated.
Thanks