jinja2.environmentfunction¶
-
jinja2.environmentfunction(f)[source]¶ This decorator can be used to mark a function or method as environment callable. This decorator works exactly like the
contextfunction()decorator just that the first argument is the activeEnvironmentand not context.