class documentation

class DebugExtension(Extension):

View In Hierarchy

A {% debug %} tag that dumps the available variables, filters, and tests.

<pre>{% debug %}</pre>
{'context': {'cycler': <class 'jinja2.utils.Cycler'>,
             ...,
             'namespace': <class 'jinja2.utils.Namespace'>},
 'filters': ['abs', 'attr', 'batch', 'capitalize', 'center', 'count', 'd',
             ..., 'urlencode', 'urlize', 'wordcount', 'wordwrap', 'xmlattr'],
 'tests': ['!=', '<', '<=', '==', '>', '>=', 'callable', 'defined',
           ..., 'odd', 'sameas', 'sequence', 'string', 'undefined', 'upper']}
New in version 2.11.0.
Method ​_render Undocumented
Method parse No summary
Class Variable tags Undocumented

Inherited from Extension:

Method attr Return an attribute node for the current extension. This is useful to pass constants on extensions to generated template code.
Method call​_method Call a method of the extension. This is a shortcut for attr + jinja2.nodes.Call.
Method filter​_stream No summary
Method preprocess This method is called before the actual lexing and can be used to preprocess the source. The filename is optional. The return value must be the preprocessed source.
Class Variable identifier Undocumented
Method __init__ Undocumented
Method __init​_subclass__ Undocumented
Method bind Create a copy of this extension bound to another environment.
Class Variable priority Undocumented
Instance Variable environment Undocumented
def _render(self, context):

Undocumented

Parameters
context:ContextUndocumented
Returns
strUndocumented
def parse(self, parser):
If any of the tags matched this method is called with the parser as first argument. The token the parser stream is pointing at is the name token that matched. This method has to return one or a list of multiple nodes.
Parameters
parser:ParserUndocumented
Returns
nodes.OutputUndocumented
tags: set[str] =

Undocumented