class documentation

class ExtendsNode(Node): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method __repr__ Undocumented
Method find_template This is a wrapper around engine.find_template(). A history is kept in the render_context attribute between successive extends calls and passed as the skip argument. This enables extends to work recursively without extending the same template twice.
Method get_parent Undocumented
Method render Return the node rendered as a string.
Class Variable context_key Undocumented
Class Variable must_be_first Undocumented
Instance Variable blocks Undocumented
Instance Variable nodelist Undocumented
Instance Variable parent_name Undocumented
Instance Variable template_dirs Undocumented

Inherited from Node:

Method get_nodes_by_type Return a list of all nodes (within this node and its nodelist) of the given type
Method render_annotated Render the node. If debug is True and an exception occurs during rendering, the exception is annotated with contextual line information where it occurred in the template. For internal usage this method is preferred over using the render method directly.
Class Variable child_nodelists Undocumented
Class Variable token Undocumented
def __init__(self, nodelist, parent_name, template_dirs=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def find_template(self, template_name, context): (source)

This is a wrapper around engine.find_template(). A history is kept in the render_context attribute between successive extends calls and passed as the skip argument. This enables extends to work recursively without extending the same template twice.

def get_parent(self, context): (source)

Undocumented

def render(self, context): (source)

Return the node rendered as a string.

context_key: str = (source)

Undocumented

Undocumented

nodelist = (source)

Undocumented

parent_name = (source)

Undocumented

template_dirs = (source)

Undocumented