@register.simple_tag
def active(request, pattern):
    if request.path == pattern:
        return 'active'
    return ''
Returns the string 'active' if pattern matches.
dataset/ETHPy150Open Tivix/django-common/django_common/templatetags/custom_tags.py/active