class documentation

class TagLoader: (source)

Constructor: TagLoader(tag)

Implements interfaces: twisted.web.iweb.ITemplateLoader

View In Hierarchy

An ITemplateLoader that loads an existing flattenable object.

Method __init__ No summary
Method load Load a template suitable for rendering.
Instance Variable tag The object which will be loaded.
def __init__(self, tag: Flattenable): (source)
Parameters
tag:FlattenableThe object which will be loaded.
def load(self) -> List[Flattenable]: (source)

Load a template suitable for rendering.

Returns
List[Flattenable]a list of flattenable objects, such as byte and unicode strings, twisted.web.template.Elements and IRenderable providers.
tag: Flattenable = (source)

The object which will be loaded.