XF 2.3 Javascript & css files

How should I be including java script files and css in a addon?
I'm aware I can just add javascript files into the zip folder manually, but surely theres an easier way.

For css files, i've been creating templates and calling them like this:
HTML:
<xf:css src="public:template_name.less" />

But for javascript, i've been writing it manually in the /js folder and calling it like this:
HTML:
<xf:js src="addonName/javascript_file_name.js" min="1" />
 
 
Back
Top Bottom