XF 2.0 Attaching a script to the bottom of the page in a separate template

Matt C.

Well-known member
Is there a way to attach a <script> tag with open javascript code to the bottom of page like the way the <xf:is src="" /> does? The reason I'm asking is because I need to use option tags in the javascript code. I'd prefer not to use a template modification, but will if necessary.

I hope my question is clear. Thank you.
 
I want to add template modification with javascript. Is it possible to merge my code with vendor-compiled.js or some other file?
or do I have save my code into a file .js and link to this file somewhere at the end of the page?
 
Top Bottom