Sass Supports Rack
I’ve just released Haml and Sass 2.2.14. There are a bunch of useful changes in there; a few bug fixes, a few very minor feature additions. But there’s one feature in particular that’s more exciting than the rest: Sass now has native support for all Rack-based frameworks.
Just put this in yourconfig.ru:
require 'sass/plugin/rack' use Sass::Plugin::Rack
The Sass Rack plugin works just like the Rails and Merb plugins.
Every request, it looks for Sass files in public/stylesheets/sass
and compiles them to CSS files in public/stylesheets if necessary.
These paths can be configured like so:
Sass::Plugin.options[:css_location] = "./stylesheets" Sass::Plugin.options[:template_location] = "./sass"
About Me
Feed
October 2009
9 Comments
More

