

@register.simple_tag
def current_unique(request, pattern, element_id):
    if re.search(pattern, request.path):
        return mark_safe((' id="%s-current"' % element_id))
    return mark_safe((' id="%s"' % element_id))

dataset/ETHPy150Open chaosk/teerace/teerace/lib/templatetags/menu.py current_unique/original