This plugin will allow you to use SASS in heroku (where public folder is read only), by generating css and js files inside tmp and then accessing them with a controller
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

HerokuSassAndCache
==================

This plugin will do the following:
- Generate SASS files inside tmp/stylesheets
- If you are combining all your JS and CSS by adding ":cache => true", it will generate the combined file inside tmp/javascript and tmp/stylesheets

The included controller should allow you to access these files like normal. Etags are provided so that Heroku's Varnish caches the files.

I know, the name is terrible. Its not very imaginative.

Make it work
============

Add to config/routes.rb "map.heroku_sass_and_cache"

There is a rake task available to generate the css files:
RAILS_ENV=production rake heroku_sass_and_cache:generate_style_sheets


Copyright (c) 2009 Mooktakim Ahmed, released under the MIT license