Jinja2 Custom Filter