Module reahl.web.layout¶
New in version 3.2.
Utilities to deal with layout.
PageLayout¶
-
class
reahl.web.layout.
PageLayout
(document_layout=None, contents_layout=None, header_layout=None, footer_layout=None)¶ A PageLayout creates a basic skeleton inside an
reahl.web.ui.HTML5Page
, and optionally applies specifiedLayout
s to parts of this skeleton.The skeleton consists of a
Div
called the document of the page, which contains three sub-sections inside of it:- the .header – the page header area where menus and banners go;
- the .contents of the page – the main area to which the main content will be added; and
- the .footer – the page footer where links and legal notices go.
Parameters: Styling
Adds a <div id=”doc”> to the <body> of the page, which contains:
- a <header id=”hd”>
- a <div id=”contents”>
- a <footer id=”ft”>
New in version 3.2.
-
header
= None¶ The
reahl.web.ui.Header
of the page.
-
contents
= None¶ The
reahl.web.ui.Div
containing the contents.
The
reahl.web.ui.Footer
of the page.
-
document
= None¶ The
reahl.web.ui.Div
containing the entire page.
-
header_layout
= None¶ A
reahl.web.fw.Layout
to be used for the header of the page.
-
contents_layout
= None¶ A
reahl.web.fw.Layout
to be used for the contents div of the page.
A
reahl.web.fw.Layout
to be used for the footer of the page.
-
document_layout
= None¶ A
reahl.web.fw.Layout
to be used for the document of the page.
-
customise_widget
()¶ Override this method in subclasses to allow your Layout to change its Widget upon construction. There is no need to call super(), as the superclass implementation does nothing.