Add template_filter decorator