Module reahl.web.bootstrap.ui
This module houses stylised versions of very basic user interface
elements – user interface elements that have a one-to-one
correspondence to HTML elements (or are of similar simplicity).
Widgets for constructing a page
HTML5Page
-
class
reahl.web.bootstrap.ui.
HTML5Page
(view, title='$current_title', css_id=None)
A web page that may be used as the page of a web application. It ensures that everything needed by
the framework (linked CSS and JavaScript, etc) is available on such a page.
Styling
Renders as an HTML5 page with customised <head> and an empty <body>.
Slot
-
class
reahl.web.bootstrap.ui.
Slot
(view, name)
A Slot is a placeholder area on a page into which different Views can plug different Widgets on the fly.
Using Slots, one can create a single HTML5page which can be
re-used by different Views instead of having to create
similar-looking HTML5Pages for each View in an application.
A Slot is added to an HTML5Page to represent an area that will be
populated later by a View. When a View is served up the framework
can then populate this empty area with Widgets specific to the
current View.
RunningOnBadge
-
class
reahl.web.bootstrap.ui.
RunningOnBadge
(view)
A visual badge proclaiming that a website is “Running on Reahl”. Using it on your site
is a bit of advertising for Reahl!
Styling
Renders as an HTML <a class=”runningon”> containing an <img>