@library.filter
def label_with_help(f):
 label = u'<label for="%s" title="%s">%s</label>'
 return jinja2.Markup((label % (f.auto_id, f.help_text, f.label)))

@ library . filter def label_with_help ( f ) : label = u'<label for="%s" title="%s">%s</label>' return jinja2 . Markup ( ( label % ( f . auto_id , f . help_text , f . label ) ) )
print the label tag for a form field .