Sha256: e1fdfbcfd765a1d2167c76d55673068ee9a07088bf24b9be264761109e13cc48
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
module Brite # Layout class class Layout < Page undef_method :save #def to_contextual_attributes # { 'site'=>site.to_h } #end # def render(attributes={}) #attributes = to_contextual_attributes #attributes['content'] = content if content output = parts.map{ |part| part.render(stencil, attributes) }.join("\n") #@content = output attributes = attributes.merge('content'=>output) if layout output = site.lookup_layout(layout).render(attributes) end output end # Layouts have no default layout. def default_layout nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brite-0.5 | lib/brite/layout.rb |