jinja2_env package
- class jinja2_env.EnvExtension(environment: Environment)[source]
Bases:
Extension- identifier: ClassVar[str] = 'jinja2_env._main.EnvExtension'
- parse(parser: Parser) Output[source]
If any of the
tagsmatched 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.
- tags: Set[str] = {'env'}
if this extension parses this is the list of tags it’s listening to.