

@register.simple_tag
def active(request, url):
    if request.path.startswith(reverse(request)):
        return 'active'
    return ''

dataset/ETHPy150Open jrief/django-angular/examples/server/templatetags/tutorial_tags.py active/VarMisuse@26/28 `url`->`request`