andrewdavey/cassette — pull request #397 by kamsar (2013-07-26 21:15:20+00:00)
Title: Compass support

I've implemented basic support for the Compass variant of Sass. This version does not use IronRuby and requires a Ruby+Compass installation that it can invoke.

This pull request is totally not ready to be merged at this time, I'm opening it mostly for discussion and suggestions for improvement towards eventual production readiness.

General installation directions:
1. Install ruby with RubyInstaller, and then run "gem install compass"
2. Reference this fork of Cassette and Cassette.Compass in your .NET project
3. Create a Compass project somewhere under your .NET web project with "compass create"
4. Reference the Compass project in your Cassette configuration like so: `bundles.Add("Path/To/Project");` (don't include the config.rb in the path, just the parent directory!)
5. Tell Cassette where to find Compass by setting the RubyBinPath environment variable: `` (note: you can use absolute or site-relative paths here. This also isn't very Cassette-y, and I bet there's a much better way to accomplish this)
6. It should 'just work', compiling the sass/scss files in the Compass project's sass folder and serving the results from the css folder. It has relatively hacky sass import change tracking that works as long as your imports are children or siblings of the main sass file and are named with the _ convention.