TemplateContext

TemplateContext class

Represents a model object interface for a template engine.

getGlobal

NameDescription
getGlobal ()Returns global storage of the host document. Read-only Storage.

Returns: Storage


getLocal

NameDescription
getLocal ()Returns local storage of the current template context. Read-only Storage.

Returns: Storage


getObject

NameDescription
getObject ()Returns the model object. Read-only Object.

Returns: TObject


getOutput

NameDescription
getOutput ()Returns collection of output elements of the host document. Read-only Output( #getOutput).

Returns: Output


subModel

NameDescription
subModel (TSubModel)Creates a child template context.

Parameters:

NameTypeDescription
subModelTSubModelChild model object.

Returns: TemplateContext