@register.function
@jinja2.contextfunction
def collection_widgets(context, collection, condensed=False):
 c = dict(context.items())
 if collection:
  c.update({'condensed': condensed, 'c': collection})
  template = get_env().get_template('bandwagon/collection_widgets.html')
  return jinja2.Markup(template.render(c))

@ register . function @ jinja2 . contextfunction def collection_widgets ( context , collection , condensed = False ) : c = dict ( context . items ( ) ) if collection : c . update ( { 'condensed' : condensed , 'c' : collection } ) template = get_env ( ) . get_template ( 'bandwagon/collection_widgets.html' ) return jinja2 . Markup ( template . render ( c ) )
displays collection widgets .