<s> """<STR_LIT>""" <EOL> from django . shortcuts import render_to_response , get_object_or_404 , redirect <EOL> from django . template import RequestContext <EOL> def render ( request , data , template_path ) : <EOL> data [ '<STR_LIT>' ] = template_path <EOL> if request . is_ajax ( ) : <EOL> new_template_path = '<STR_LIT>' <EOL> else : <EOL> new_template_path = '<STR_LIT>' <EOL> return render_to_response ( <EOL> new_template_path , <EOL> data , <EOL> context_instance = RequestContext ( request ) <EOL> ) </s>
