#NEWLINE# def render_template_string( source , **context ) : #NEWLINE# #INDENT# 'Renders a template from the given template source string\n    with the given context.\n\n    :param template_name: the sourcecode of the template to be\n                          rendered\n    :param context: the variables that should be available in the\n                    context of the template.\n    ' #NEWLINE# ctx = _request_ctx_stack . top #NEWLINE# ctx . app . update_template_context ( context ) #NEWLINE# return _render ( ctx . app . jinja_env . from_string ( source ) , context , ctx . app )