#NEWLINE# def modify_response( response ) : #NEWLINE# #INDENT# if ( response . mimetype == 'application/json' ) : #NEWLINE# #INDENT# data = format_json ( response . get_data ( ) ) #NEWLINE# rendered = render_template ( TEMPLATE , data = data , methods = g . methods ) #NEWLINE# return make_response ( rendered ) #NEWLINE# #UNINDENT# return response