

@register.simple_tag
def current(request, pattern):
    if (pattern == '/'):
        if (request.path == pattern):
            return mark_safe(' id="current"')
        else:
            return ''
    if request.path.startswith(pattern):
        return mark_safe(' id="current"')
    return ''

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