def render_template_with_bootstrap(text, context=None):
 if (not context):
  context = {}
 return render_template((u'{% load bootstrap3 %}' + text), context)

def render_template_with_bootstrap ( text , context = None ) : if ( not context ) : context = { } return render_template ( ( u'{% load bootstrap3 %}' + text ) , context )
create a template text that first loads bootstrap3 .