-
-
Save jacquescrocker/1042904 to your computer and use it in GitHub Desktop.
gem 'sass-rails', :git => "https://github.com/rails/sass-rails.git" | |
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31' |
# config/initializers/sass.rb | |
# THIS IS NO LONGER NEEDED (thanks @heisenthought!) | |
# require 'sass' | |
# require 'sass/plugin' | |
# module Compass | |
# end | |
# require 'compass/browser_support' | |
# require 'compass/configuration' | |
# require 'compass/sass_extensions' | |
# | |
# Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths| | |
# load_paths << "#{Rails.root}/vendor" | |
# end |
Thanks, I'll give this a shot.
FWIW: I went back to using sass-rails.
hmm.. does that work with compass?
Sure does.
Here's what to know:
- In my Gemfile, I'm using gem
'sass-rails', :git => 'git://github.com/rails/sass-rails.git'
, which is tied to'3.1.0.rc.3'
at the moment. - I haven't got sprocket (directives, like require_tree) to play well with sass/compass organized files.
- I don't have a config/initializers/sass.rb
- You have access to
asset_url
in.css.scss
files, as inasset_url("foo.png", image)
.
cool. yeah, i dont see the point of sprocket when using sass since you can do @includes the same way.
i dont quite understand how compass fits in though. what compass gem are you referencing? the release version? how does it add in the compass load paths?
I'm using the same gem/branch you are:
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'
I haven't needed a custom compass load path (I noticed you're using vendor
); I don't have an answer.
ah, cool. yeah i dont use vendor either. sounds like your approach should work for me as well, i'll switch to that
Let me know if you run into any edge cases or weird observations.
seems to be working great. much simpler thanks!
Whoa, much better :)
just verified, partials are just being included once in the generated output