class documentation

class Tag(compat.with_metaclass(_TagMeta, Node)):

Known subclasses: mako.parsetree.BlockTag, mako.parsetree.CallNamespaceTag, mako.parsetree.CallTag, mako.parsetree.DefTag, mako.parsetree.IncludeTag, mako.parsetree.InheritTag, mako.parsetree.NamespaceTag, mako.parsetree.PageTag, mako.parsetree.TextTag

View In Hierarchy

abstract base class for tags.

e.g.:

<%sometag/>

<%someothertag>
    stuff
</%someothertag>
Method __init__ construct a new Tag instance.
Method __repr__ Undocumented
Method ​_parse​_attributes Undocumented
Method declared​_identifiers Undocumented
Method get​_children Undocumented
Method is​_root Undocumented
Method undeclared​_identifiers Undocumented
Class Variable __keyword__ Undocumented
Instance Variable attributes Undocumented
Instance Variable expression​_undeclared​_identifiers Undocumented
Instance Variable keyword Undocumented
Instance Variable nodes Undocumented
Instance Variable parent Undocumented
Instance Variable parsed​_attributes Undocumented
def __init__(self, keyword, attributes, expressions, nonexpressions, required, **kwargs):

construct a new Tag instance.

this constructor not called directly, and is only called by subclasses.

Parameters
keywordthe tag keyword
attributesraw dictionary of attribute key/value pairs
expressionsa set of identifiers that are legal attributes, which can also contain embedded expressions
nonexpressionsa set of identifiers that are legal attributes, which cannot contain embedded expressions
requiredUndocumented
**kwargsother arguments passed to the Node superclass (lineno, pos)
def __repr__(self):

Undocumented

def _parse_attributes(self, expressions, nonexpressions):

Undocumented

def get_children(self):

Undocumented

def is_root(self):

Undocumented

attributes =

Undocumented

expression_undeclared_identifiers =

Undocumented

keyword =

Undocumented

nodes: list =

Undocumented

parent =

Undocumented

parsed_attributes: dict =

Undocumented