#It is more simple than you think
#You can use simple_tag for this.
from django import template
register = template.Library()
@register.simple_tag
def multiple_args_tag(a, b, c, d):
#do your stuff
return
#In Template
{% multiple_args_tag 'arg1' 'arg2' 'arg3' 'arg4' %}
# courtesy: sof
# https://stackoverflow.com/questions/420703/how-do-i-add-multiple-arguments-to-my-custom-template-filter-in-a-django-templat