@register.simple_tag
def bootstrap_javascript(jquery=None):
 javascript = u''
 if (jquery is None):
  jquery = get_bootstrap_setting(u'include_jquery', False)
 if jquery:
  url = bootstrap_jquery_url()
  if url:
   javascript += render_tag(u'script', attrs={u'src': url})
 url = bootstrap_javascript_url()
 if url:
  attrs = {u'src': url}
  javascript += render_tag(u'script', attrs=attrs)
 return mark_safe(javascript)

@ register . simple_tag def bootstrap_javascript ( jquery = None ) : javascript = u'' if ( jquery is None ) : jquery = get_bootstrap_setting ( u'include_jquery' , False ) if jquery : url = bootstrap_jquery_url ( ) if url : javascript += render_tag ( u'script' , attrs = { u'src' : url } ) url = bootstrap_javascript_url ( ) if url : attrs = { u'src' : url } javascript += render_tag ( u'script' , attrs = attrs ) return mark_safe ( javascript )
return html for bootstrap javascript .