There you go, did it for fun :)
One thing remaining: how to find out if asset exists without an exception
being thrown?
public class IncludeJavascriptLibraryWithSameNameWorker extends
AbstractIncludeAssetWorker {
private final RenderSupport renderSupport;
private final AssetSource assetSourc
> But in the end, i realized that it's a silly idea that only leads to other
> people having even more problems finding out what's going on in my code :)
If you organize things so that your js lives right next to your tml
then it shouldn't be so hard to handle. If you're looking at the
folder you
Thanks!
I looked into this and it wasn't too hard to figure out (as usual).
But in the end, i realized that it's a silly idea that only leads to other
people having even more problems finding out what's going on in my code :) I
can afford the typing required to include the javascript companion fo
Hi,
Your worker should use AssetSource and RenderSupport to automatically add
the js file if it exists, have a look at IncludeJavaScriptLibraryWorker
source file to see an exemple of script injection.
BTW in my experience, the multiplication of JS/CSS files is not really
appreciated by IE, so if y