code: def block_anyfilter(parser, token):
      
      bits = token.contents.split()
      nodelist = parser.parse(('endblockanyfilter',))
      parser.delete_first_token()
      return BlockAnyFilterNode(nodelist, bits[1], *bits[2:])
docs: 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 %}