jinja2.ext.ExprStmtExtension

class jinja2.ext.ExprStmtExtension(environment)[source]

Adds a do tag to Jinja2 that works like the print statement just that it doesn’t print the return value.

Methods

__init__(environment)
attr(name[, lineno]) Return an attribute node for the current extension.
bind(environment) Create a copy of this extension bound to another environment.
call_method(name[, args, kwargs, dyn_args, ...]) Call a method of the extension.
filter_stream(stream) It’s passed a TokenStream that can be used to filter tokens returned.
parse(parser)
preprocess(source, name[, filename]) This method is called before the actual lexing and can be used to preprocess the source.