Board Thread:Support Requests - Getting Technical/@comment-9605025-20150603163252/@comment-452-20150603211959

It cannot be passed to a parser function.

Parser functions, magic words, templates - basically all content on the server - is cached.

Javascript runs in the browser. The browser gets the cached page, then runs the script, which can access and updated the page displayed in the browser.

If you wish to do calculations to the template which rely on the current time, then the template needs to expose the variables you need somehow (I would suggest named attributes), and then the script reads that data, performs the calculations, and updates the html in the browser.

Well... there is one alternative, which would be to use the API to call the template with the current time passed as a parameter, but that's even more complicated, gives needless extra work to the server, and would be slower.