Web Oriented Object Framework

User Guide (Version 0.4)

line separator

The pagevar Object

For each request, Woof! automatically creates an object called pagevar of class Map and intializes it to default values. By convention, this object contains settings related to page layout options and other page meta information such as title or stylesheets.

For example, the Woof! default layout retrieves information such as size and positioning of elements from the pagevar object. The following two lines in the constructor for a controller (or executed any time before the page is rendered)

pagevar set title "My Application"
pagevar set yui_sidebar_pos right yui_page_width fluid

will set the title for the page in the first line, and then place the sidebar on the right hand side of a dynamic width page.

Applications may or may not make use of the pagevar object but if used, it is advisable to use it for similar purposes as opposed to something unrelated like storage of application data.

Woof! Version: 0.4, Server: Apache, Interface: CGI, Tcl: 8.6b1.1