NAME
Reaction::UI::Widget::SiteLayout - The layout of the site as a whole
DESCRIPTION
This is a subclass of Reaction::UI::Widget::Container. It is generally used as the widget surrounding the site's content.
FRAGMENTS
widget
Additionally provides these arguments after the parent widget fragment has been rendered:
- static_base
-
The
static_base_uriof the viewport. - title
-
The
titleattribute value of the viewport.
meta_info
If the viewports meta_info contains a value for http_header, It will be removed and set as http_header argument. Next, the meta_http_header fragment will be rendered for each key of the http_header hash reference.
After the http_header processing, the remaining keys of the viewports meta_info attribute hash reference will be rendered via the meta_member fragment.
meta_http_header
Additionally provides these arguments:
- meta_name
-
The current value of the
_argument, which will be set to the key of thehttp_headerargument hash reference when rendered by themeta_infofragment. - meta_value
-
The value of the
meta_namekey in thehttp_headerargument hash reference.
meta_member
Additionally provides these arguments:
- meta_name
-
The current value of the
_argument, which will be set to the key of the viewport'smeta_infoattribte value when rendered by themeta_infofragment. - meta_value
-
The value of the
meta_namekey in the viewport'smeta_infoattribute hash reference.
LAYOUT SETS
base
share/skin/base/layout/site_layout.tt
The base layout set will provide the following layouts:
- widget
-
This layout will render the
doctypefragment at the top of the page. Then the traditional HTML layout with ahtmlelement containinghead(rendering theheadfragment andbody(rendering thebodyfragment) elements. - head
-
Will render the
titleargument in atitleelement. After that it will render thehead_meta,head_scriptsandhead_stylefragments. - head_meta
-
Renders the
meta_infofragment. - meta_http_header
-
Renders a
metaelement where the value of thehttp-equivattribute is set to themeta_nameargument and thecontentattribute is set to themeta_valueargument. - meta_member
-
Renders a
metaelement where thenameattribute is set to themeta_nameargument and thecontentattribute is set to themeta_valueargument. - head_scripts
-
Is empty by default.
- head_style
-
Is empty by default.
- doctype
-
By default this renders an
XHTML 1.0 Transitionaldoctype. - body
-
This will render the
innerviewports in the focus stack.
default
share/skin/default/layout/site_layout.tt
The site_layout layout set in the default skin extends the one in the base skin documented above.
The following layouts are provided:
- widget
-
This layout is mostly the same as the one in the
baseskin, except that thehtmlelement hasxmlnsandxml:langattributes set.
AUTHORS
See Reaction::Class for authors.
LICENSE
See Reaction::Class for the license.