We Take Pull Requests!
Since Compass v0.12.0, this is the only way to use compass with your rails application.
Supports Rails 3.2, 4.x releases.
compass-rails gem line to your application's Gemfile
gem 'sass-rails' gem 'compass-rails'
If you are using any Compass extensions, add them to this group in your Gemfile.
And then execute:
application.css.sass and use
@import to your hearts content. Ex:
@import "project/mixins"; @import "project/base";
application.css to require files that use compass features. Ex:
/* *= require styleguide_full_of_compass_stuff */
*= require something within your SCSS or SASS files. You're gonna have a bad time.
If you have a compass configuration file (recommended) then you can
use the Compass configuration
as is. If you choose to configure compass from your rails configuration
files, then you should understand that the compass configuration
options explained there will be methods and properties on the
configuration object exposed to rails within any configuration block.
Step 1: Add it to your Gemfile and run the
bundle command to install it.
Step 2: Install the extension's assets:
bundle exec compass install
For example, if you want to use susy.
# Gemfile gem 'compass-rails' gem 'compass-susy-plugin'
$ bundle $ bundle exec compass install susy
if you are using the rails configuration files you should add:
to your application.rb configuration file.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request