Class: Compass::Configuration::Layout

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/compass/configuration/layout.rb

Overview

Compass configuration for layout.

Class Method Summary collapse

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 with_banner("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