Module: Lawnchair::View::Helper

Defined in:
lib/view/helper.rb

Instance Method Summary collapse

Instance Method Details

#lawnchair_cache(key, &block) ⇒ Object



5
6
7
8
9
10
# File 'lib/view/helper.rb', line 5

def lawnchair_cache(key, &block)
  rendered_value = Lawnchair.cache(key, :raw => true) do
    capture(&block)
  end
  concat(rendered_value)
end