Asset Dependency Manager plugin is now on GitHub

I use jQuery UI a lot, but I don’t use all of it and I prefer not to install the entire library if I can help it. Its not enough to just manage the JS assets you need for a particular widget, you often have to juggle inclusion of its CSS as well. So, rather than separating out the plugins I use on each project, I thought it would be cooler (in development at least) to leave them as smaller files and just find a better way to manage which assets were needed, when they were needed!

In an effort to eliminate some development headache I’ve created Asset Dependency Manager. You can download it here:

Basically, it lets you declare dependency lookups in your applicationhelper.rb file … Then in your views you say something akin to … assetsfor :tabs, :slider, :etc … and the resources for said lookups with be included in your layout view auto-magically, removing duplicates and paying strict attention to your intended loading order.

The README has more info on how to use it. Let me know if you find it useful or have feature requests.

And if its of interest, have a look at my other Rails helper for JQuery UI called TabsRenderer

comments powered by Disqus