jinja2.evalcontextfunction

jinja2.evalcontextfunction(f)[source]

This decorator can be used to mark a function or method as an eval context callable. This is similar to the contextfunction() but instead of passing the context, an evaluation context object is passed. For more information about the eval context, see Evaluation Context.

New in version 2.4.