Module

Layout

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
Protected Methods
render_with_a_layout
Private Methods
action_has_layout?
apply_layout?
candidate_for_layout?
layout_directory? Does a layout directory for this class exist? we cache this info in a class level hash
pick_layout
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.