from django import template register = template.Library() @register.simple_tag def multiple_args_tag(a, b, c, d): #do your stuff return