Class: Compass::Configuration::Layout
- Inherits:
-
Object
- Object
- Compass::Configuration::Layout
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/compass/configuration/layout.rb
Overview
Compass configuration for layout.
Class Method Summary collapse
-
.before_render(&block) ⇒ Object
Inject a block to be executed in the layout rendering context.
Class Method Details
.before_render(&block) ⇒ Object
Inject a block to be executed in the layout rendering context.
Example:
Compass.configure do |config|
config.layout.before_render do
("Welcome to Compass")
end
end
27 28 29 |
# File 'lib/compass/configuration/layout.rb', line 27 def self.before_render(&block) before_render_blocks << block end |