about me

I'm a 34'ish year old web application developer from South Portland, Maine. I love meeting fellow techies, drop me a line if you want to talk shop.

Categories

Asset Dependency Manager plugin is now on GitHub

Posted on 08/07 at 06:26 PM

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:

http://github.com/CodeOfficer/asset-dependency-manager/tree/master

Basically, it lets you declare dependency lookups in your application_helper.rb file ... Then in your views you say something akin to ... assets_for :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

Leave a comment?

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


RailsConf 2008 Often times I will release code for free or go that extra distance to help others online. If my skills were useful to you, please consider a small donation. Thank you very much.

recommend me!

Search

You Can Find Me

@ github.com
@ twitter.com

My Wishlists

@ Amazon.com

My Other Sites

Foundation's Edge, RJones Family, We're Not.com (only for staging), Ailee Jones (same as rjones for now)

Friends of Mine

Aaron, Barnaby, Brian, Chris, Dirk, Frank, Fred, Four, Justin, Matt, Mike, Monty, Paul, Sean, Travis

IRC Hangouts

I can usually be found lounging on irc.freenode.net while I work, on the following channels: #fauna, #github, #hello-heroku, #jquery, #passenger, #ruby, #rubyonrails, #slicehost, #sproutcore, #textmate, #werenot.