Processing SASS from more than one location
I’m currently working on the front end of a RoR site using the wondrous HAML & SASS and had a requirement to process SASS files from more than one directory and deposit them into public/stylesheets. Thanks to Jamie here at Jiva we have found that buried in the code is support for that very thing.
Simply put the following code at the bottom of your environment.rb and SASS will munch away happily.
Sass::Plugin.options[:template_location] = {
RAILS_ROOT + '/your/base/directory' => RAILS_ROOT + '/public/stylesheets',
RAILS_ROOT + '/you/theme/directory' => RAILS_ROOT + '/public/stylesheets'
}