def render_icon(icon, **kwargs):
 attrs = {u'class': add_css_class(u'glyphicon glyphicon-{icon}'.format(icon=icon), kwargs.get(u'extra_classes', u''))}
 title = kwargs.get(u'title')
 if title:
  attrs[u'title'] = title
 return render_tag(u'span', attrs=attrs)

def render_icon ( icon , ** kwargs ) : attrs = { u'class' : add_css_class ( u'glyphicon glyphicon-{icon}' . format ( icon = icon ) , kwargs . get ( u'extra_classes' , u'' ) ) } title = kwargs . get ( u'title' ) if title : attrs [ u'title' ] = title return render_tag ( u'span' , attrs = attrs )
render a bootstrap glyphicon icon .