Module: BigBand::Compass::ClassMethods
- Defined in:
- lib/big_band/compass.rb
Instance Attribute Summary collapse
-
#compass_route ⇒ Object
readonly
Returns the value of attribute compass_route.
Instance Method Summary collapse
Instance Attribute Details
#compass_route ⇒ Object (readonly)
Returns the value of attribute compass_route.
42 43 44 |
# File 'lib/big_band/compass.rb', line 42 def compass_route @compass_route end |
Instance Method Details
#get_compass(path, &block) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/big_band/compass.rb', line 43 def get_compass(path, &block) block ||= Proc.new do |file| content_type 'text/css', :charset => 'utf-8' compass :"#{path}/#{params[:name]}" end set :compass, :sass_dir => klass.views / path unless compass[:sass_dir] && compass[:sass_dir].directory? @compass_route.deactivate if @compass_route @compass_route = get("/#{path}" / ":name.css", &block) end |