Directly generated page sections
In lieu of template files, the content for a page section may be directly stored into the page object by the action method of a controller. In this case, when the layout template retrieves the page section from the object, it will not search for a template file for the page section but instead directly include the stored HTML instead. The stored content for the page section must be properly encoded, valid HTML content as no further processing, substitution or encoding is done on it.
The store method of the page object will store any specified content as the content of the named page section. For example,
page store main "<p>This is the content for the main page section.</p>"
sets the content for the main page section of the web page.
As a general rule, it is not recommended setting page section content in this manner except in some simple cases as it violates the principle of separation of program logic from presentation.