edgecase / dieter

Asset pipeline ring middleware
134 stars 22 forks source link

Allow multiple asset directories #28

Closed anaisbetts closed 12 years ago

anaisbetts commented 12 years ago

This PR allows you to use multiple asset directories, which will be searched in order. To do this, :asset-root is now replaced with a new symbol, :asset-roots which expects a Seq (:asset_root still works though for compat with existing code).

The main advantage of this is to allow for Submodules that include their own assets, so you can use both "SomeCoolLibrary/assets" and "MyApp/assets" without having to manually copy SomeCoolLibary's stuff into MyApp (and thereby defeating the purpose of the submodule).

pbiggar commented 12 years ago

Looks good, and I think this makes some sense. Would be interesting to see how this extends to jars, but submodules are important too.

anaisbetts commented 12 years ago

Definitely - to be honest, when it comes to Java stuff, I'm mostly

but, being able to integrate a jar's resources would be awesome as well.