Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 633 Bytes

filters.md

File metadata and controls

11 lines (9 loc) · 633 Bytes

Custom filters

The filters directory can define custom Jinja2 filters which will be available in all Jinja2 templates. The file name defines the filter name, e.g. filters/myfilter.py will define a filter named myfilter. This file should also contain a function called myfilter, this one will be called when the filter is invoked. For more information on Jinja2 filters see official documentation.


Prev: Custom Jinja2 global functions and variables (globals) | Up: Home | Next: Localization files (locales)