My part in this application development is limited to a particular section only, but there was already a lot of external assets present in the header and things were getting very messy. I was looking for a way to simulate
I now have a master js file to add to thesection of my document:
From within this master.js file I can ‘include’ any js files I want.
The above code includes myFile1.js and myFile2.js, both of which are located in the relative ‘js/’ directory.
Not only does this clean up my output, but as my config file was stored in application scope every time I wanted to add/remove an asset from my application I need to refresh the scope…annoying. But now I am happy :)