#NEWLINE# def direct_to_template( request , template , extra_context = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , **kwargs ) : #NEWLINE# #INDENT# '\n    Render a given template with any extra URL parameters in the context as\n    ``{{ params }}``.\n    ' #NEWLINE# dictionary = { #NEWLINE# #INDENT# 'params' : dictionary , #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in extra_context . items ( ) : #NEWLINE# #INDENT# if callable ( value ) : #NEWLINE# #INDENT# dictionary [ key ] = value ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dictionary [ key ] = value #NEWLINE# #UNINDENT# #UNINDENT# return render_to_response ( template , dictionary , context_instance = RequestContext ( request ) )