You don't need a Rails application to use Sass. Even when you're working on a static site you can generate your CSS through Sass.
sudo gem install haml
sass
in the folder, that stores your stylesheets, e.g. mkdir css/sass
sass --watch css/sass:css
. This will watch your sass files for changes and rewrite stylesheets as required.This even works on Windows.
You might want to change our typical .gitignore to not exclude public/stylesheets/*.css
, since stylesheets aren't being generated automatically without Rails (this would bite you after a deploy). Instead exclude .sass-cache
, which will be created in whatever folder you run sass --watch
in.