Sha256: 22c53dd611804ecb769121dc0803dc496bb4403e0696ab18b460b80099c1bdf6
Contents?: true
Size: 510 Bytes
Versions: 2
Compression:
Stored size: 510 Bytes
Contents
module StaticMatic module Helpers module RenderHelper self.extend self def content_hash @content_hash ||= {} end def yield_for(index) self.content_hash[index.to_sym] || "" end def content_for(index,&block) content_hash[:sidebar] = capture_haml &block end # Include a partial template def partial(name, options = {}) @staticmatic.generate_partial(name, options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
staticmatic2-2.0.2 | lib/staticmatic/helpers/render_helper.rb |
staticmatic2-2.0.1 | lib/staticmatic/helpers/render_helper.rb |