Reaction::UI::Widget::SiteLayout - The layout of the site as a whole
This is a subclass of Reaction::UI::Widget::Container. It is generally used as the widget surrounding the site's content.
Additionally provides these arguments after the parent widget fragment has been rendered:
The static_base_uri of the viewport.
static_base_uri
The title attribute value of the viewport.
title
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.
meta_info
http_header
meta_http_header
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_member
Additionally provides these arguments:
The current value of the _ argument, which will be set to the key of the http_header argument hash reference when rendered by the meta_info fragment.
_
The value of the meta_name key in the http_header argument hash reference.
meta_name
The current value of the _ argument, which will be set to the key of the viewport's meta_info attribte value when rendered by the meta_info fragment.
The value of the meta_name key in the viewport's meta_info attribute hash reference.
share/skin/base/layout/site_layout.tt
The base layout set will provide the following layouts:
This layout will render the doctype fragment at the top of the page. Then the traditional HTML layout with a html element containing head (rendering the head fragment and body (rendering the body fragment) elements.
doctype
html
head
body
Will render the title argument in a title element. After that it will render the head_meta, head_scripts and head_style fragments.
head_meta
head_scripts
head_style
Renders the meta_info fragment.
Renders a meta element where the value of the http-equiv attribute is set to the meta_name argument and the content attribute is set to the meta_value argument.
meta
http-equiv
content
meta_value
Renders a meta element where the name attribute is set to the meta_name argument and the content attribute is set to the meta_value argument.
name
Is empty by default.
By default this renders an XHTML 1.0 Transitional doctype.
XHTML 1.0 Transitional
This will render the inner viewports in the focus stack.
inner
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.
site_layout
default
base
The following layouts are provided:
This layout is mostly the same as the one in the base skin, except that the html element has xmlns and xml:lang attributes set.
xmlns
xml:lang
See Reaction::Class for authors.
See Reaction::Class for the license.
To install Reaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaction
CPAN shell
perl -MCPAN -e shell install Reaction
For more information on module installation, please visit the detailed CPAN module installation guide.