jinja2_shell package

class jinja2_shell.ShellExtension(environment: Environment)[source]

Bases: Extension

identifier: ClassVar[str] = 'jinja2_shell._main.ShellExtension'
parse(parser: Parser) Output[source]

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.

tags: Set[str] = {'shell'}

if this extension parses this is the list of tags it’s listening to.