@register.tag('<STR_LIT>')<EOL>def block_anyfilter(parser, token):
bits = token.contents.split()<EOL>nodelist = parser.parse(('<STR_LIT>',))<EOL>parser.delete_first_token()<EOL>return BlockAnyFilterNode(nodelist, bits[<NUM_LIT:1>], *bits[<NUM_LIT:2>:])<EOL>
Turn any template filter into a blocktag.

Usage::

{% load libs_tags %}
{% block_anyfilter django.template.defaultfilters.truncatewords_html 15 %}
    // Something complex that generates html output
{% endblockanyfilter %}