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.

Result: Storage


getLocal

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

Result: Storage


getObject

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

Result: TObject


getOutput

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

Result: Output


subModel

NameDescription
subModel(TSubModel)Creates a child template context.

Parameters:

NameTypeDescription
subModelTSubModelChild model object.

Result: TemplateContext