README.md in sprockets-sass-0.2.3 vs README.md in sprockets-sass-0.3.0
- old
+ new
@@ -12,11 +12,11 @@
* Imports Sass _partials_ (filenames prepended with "_").
* Import paths work exactly like `require` directives.
* Imports either Sass syntax, or just regular CSS files.
* Imported files are preprocessed by Sprockets, so `.css.scss.erb` files can be imported.
Directives from within imported files also work as expected.
-* Standard Sass load paths are not touched, so Compass extensions will work as expected.
+* Automatic integration with Compass.
* Supports glob imports, like sass-rails.
Installation
------------
@@ -87,9 +87,45 @@
-moz-border-radius: 5px;
border-radius: 5px;
color: red; }
```
+
+Compass Integration
+-------------------
+
+As of version 0.3.0, Compass is automatically detected and integrated. All you have to do
+is configure Compass like you normally would:
+
+``` ruby
+require "sprockets"
+require "sprockets-sass"
+require "sass"
+require "compass"
+
+Compass.configuration do |compass|
+ # ...
+end
+
+map "/assets" do
+ environment = Sprockets::Environment.new
+ environment.append_path "assets/stylesheets"
+ run environment
+end
+
+# etc...
+```
+
+The load paths and other options from Compass are automatically used:
+
+``` scss
+// assets/stylesheets/application.css.scss
+@import "compass/css3";
+
+button {
+ @include border-radius(5px);
+}
+```
Copyright
---------
Copyright (c) 2011 [Peter Browne](http://petebrowne.com). See LICENSE for details.