class documentation

class StaticPageTemplateFile(PageTemplateFile): (source)

View In Hierarchy

A PageTemplateFile subclass that allows injecting a custom context and options dictionary into the template rendering environment.

Method pt_getContext Build and return the namespace dictionary for page template rendering.
Method setEnv Set the rendering context and options for this template.
Instance Variable context Undocumented
Instance Variable options Undocumented
def pt_getContext(self): (source)

Build and return the namespace dictionary for page template rendering.

Returns
dictTemplate namespace with 'template', 'here', 'context', etc.
def setEnv(self, context, options): (source)

Set the rendering context and options for this template.

Parameters
context:ZMSObjectThe ZMS object used as rendering context
options:dictAdditional template options

Undocumented

Undocumented