There's no documentation for this item.
| Modules |
| ClassMethods |
Layouts reverse the common pattern of including shared headers and footers
in many templates to isolate changes in repeated setups. The inclusion
pattern has pages that look like this:
|
| Public Methods |
| active_layout |
Returns the name of the active layout. If the layout was specified as a
method reference (through a symbol), this method is called and the return
value is used. Likewise if the layout was specified as an inline method
(through a proc or method object). If the layout was defined without a
directory, layouts is assumed. So layout
"weblog/standard" will return weblog/standard, but
layout "standard" will return layouts/standard.
|
| included |
|
<code/>and<pre/>for code samples.