Rails v2.3.8 or v3.0.0b4
The directory structure is similar in public/stylesheets, as well. This essentially namespaces your directories so they are easier to organise. You need to only place files that are used in that specific namespace in the directory. If you use the library in more than one namespace, it should be placed in a “common” folder.
The “dev” folder is used locally, and is replaced with a cached version somewhere else on the Internet in production. More on that later…
You will need to include a couple of helpers in your layout files:
stylesheet_bundle - Exactly the same as above, but for CSS files.
Included Rake tasks are:
rake assemble:css - Only assembles namespaced CSS
You can handle these tasks on deployment by doing the following:
For all issues and bug/feature requests, please use the GitHub issue tracker:
Thanks to Kyle Neath for the inspiration to turn his idea into a useful plugin for all!
Copyright © 2010 Josh Delsman, released under the MIT license