@library.filter
def class_selected(a, b):
 if (a == b):
  return jinja2.Markup('class="selected"')
 else:
  return ''

@ library . filter def class_selected ( a , b ) : if ( a == b ) : return jinja2 . Markup ( 'class="selected"' ) else : return ''
return class="selected" if a == b .