Sha256: 2514a15d8101fe79197aea78dc319e3b130ddddc205d079ef4c1305f69acf778
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
class Stormy::Layout < Stormy::Chunk def render(child_template) raise "No Matching Template: #{@key}" unless @template output = child_template.render @details.merge!(child_template.details) @template.render do |section=nil| output end end def self.fetch(app,key,params) details = app.cache.layout(key) do app.store.layout(key) end self.new(app,details,params) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stormy-0.0.1 | lib/stormy/layout.rb |