@register.filter
def class_selected(a, b):
    return ifeq(a, b, 'class="selected"')
Create a base class with a metaclass.
dataset/ETHPy150Open jbalogh/jingo/jingo/helpers.py/class_selected--crossover with--dataset/ETHPy150Open spulec/freezegun/freezegun/api.py/with_metaclass