Method: Padrino::Rendering::ClassMethods#cache_layout_path
- Defined in:
- padrino-helpers/lib/padrino/rendering.rb
#cache_layout_path(name) ⇒ Object
121 122 123 124 125 126 127 128 |
# File 'padrino-helpers/lib/padrino/rendering.rb', line 121 def cache_layout_path(name) @_cached_layout ||= {} if !reload_templates? && path = @_cached_layout[name] path else @_cached_layout[name] = yield(name) end end |