add a jinja2 filter for custom macros