Class: Houston::Extensions::Layout::ExtensionDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions/layout.rb

Instance Method Summary collapse

Constructor Details

#initialize(registry, *layouts) ⇒ ExtensionDsl

Returns a new instance of ExtensionDsl.



30
31
32
33
# File 'lib/houston/boot/extensions/layout.rb', line 30

def initialize(registry, *layouts)
  @registry = registry
  @layouts = layouts
end

Instance Method Details

#footers(&block) ⇒ Object



43
44
45
# File 'lib/houston/boot/extensions/layout.rb', line 43

def footers(&block)
  add :footers, block
end

#meta(&block) ⇒ Object



35
36
37
# File 'lib/houston/boot/extensions/layout.rb', line 35

def meta(&block)
  add :meta, block
end

#scripts(&block) ⇒ Object



47
48
49
# File 'lib/houston/boot/extensions/layout.rb', line 47

def scripts(&block)
  add :scripts, block
end

#stylesheets(&block) ⇒ Object



39
40
41
# File 'lib/houston/boot/extensions/layout.rb', line 39

def stylesheets(&block)
  add :stylesheets, block
end