Sha256: 03546f93b518cf6d494954d63ac28db256004a5b2b862d5bbcffe43288da1a66
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
class Stormy::Content < Stormy::Chunk def initialize(app,details) super(app,details) resolve_content if details[:content] && @template end def render @details.merge({ body: @template.render }) end def self.fetch(app, category, key) details = app.cache.content(category,key) do app.store.content(category,key) end self.new(app,details) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stormy-0.0.1 | lib/stormy/content.rb |