def active_class(var, prop, active):
    """Tag to return an active class if the var and prop test matches."""
    try:
        return active if var == prop else ''
    except Exception:
        return ''