I've got a problem, I am using Head.js plugin to import several js files in my template. Each file has a normal path e.g. assets/js/clock/date.js
The problem is that neither I can use the path directly in importing nor using the twig asset() function to get path to these files. As an example this is what I have in a separate js file
head.js("../assets/js/newsticker/jquery.newsTicker.js", function() { ... });
How can I get access to the files in folder assets inside a javascript file?
asset()function? I guess you are referencing those javascript file in a twig file