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_uri
of the viewport. - title
-
The
title
attribute 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_header
argument hash reference when rendered by themeta_info
fragment. - meta_value
-
The value of the
meta_name
key in thehttp_header
argument 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_info
attribte value when rendered by themeta_info
fragment. - meta_value
-
The value of the
meta_name
key in the viewport'smeta_info
attribute 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
doctype
fragment at the top of the page. Then the traditional HTML layout with ahtml
element containinghead
(rendering thehead
fragment andbody
(rendering thebody
fragment) elements. - head
-
Will render the
title
argument in atitle
element. After that it will render thehead_meta
,head_scripts
andhead_style
fragments. - head_meta
-
Renders the
meta_info
fragment. - meta_http_header
-
Renders a
meta
element where the value of thehttp-equiv
attribute is set to themeta_name
argument and thecontent
attribute is set to themeta_value
argument. - meta_member
-
Renders a
meta
element where thename
attribute is set to themeta_name
argument and thecontent
attribute is set to themeta_value
argument. - head_scripts
-
Is empty by default.
- head_style
-
Is empty by default.
- doctype
-
By default this renders an
XHTML 1.0 Transitional
doctype. - body
-
This will render the
inner
viewports 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
base
skin, except that thehtml
element hasxmlns
andxml:lang
attributes set.
AUTHORS
See Reaction::Class for authors.
LICENSE
See Reaction::Class for the license.