Javascript & css files

Status
This content is read-only, or is not open for further replies.

QuackieMackie

Guest
offline
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" />

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom