# File lib/merb-core/controller/mixins/render.rb, line 18 def _templates_for @_templates_for ||= {} end
Enable the default layout logic - reset the layout option.
~to_s |
The layout that was previously set. |
:api: public
# File lib/merb-core/controller/mixins/render.rb, line 65 def default_layout self.default_render_options.delete(:layout) end
Return the default render options.
An options hash |
:api: public
# File lib/merb-core/controller/mixins/render.rb, line 28 def default_render_options self._default_render_options ||= {} end
Set the default layout to use or nil/false to disable layout rendering. This is a shortcut for render_options :layout => false.
layout<~to_s> |
The layout that should be used for this class. |
You can override by passing :layout => true to render method.
The default render options. |
:api: public
# File lib/merb-core/controller/mixins/render.rb, line 55 def layout(layout) self.default_render_options.update(:layout => (layout || false)) end
Generated with the Darkfish Rdoc Generator 2.