@library.global_function
def mozillians_form(element):
 template = get_template('includes/form.html')
 context = {'form': element}
 return mark_safe(template.render(context))

@ library . global_function def mozillians_form ( element ) : template = get_template ( 'includes/form.html' ) context = { 'form' : element } return mark_safe ( template . render ( context ) )
renders forms in jinja2 takes a form and renders the appropriate elements .