jinja2.sandbox.SandboxedEnvironment.call_unop¶
-
SandboxedEnvironment.
call_unop
(context, operator, arg)[source]¶ For intercepted unary operator calls (
intercepted_unops()
) this function is executed instead of the builtin operator. This can be used to fine tune the behavior of certain operators.New in version 2.6.