#NEWLINE# def string_template_replace( self , text , context_dict ) : #NEWLINE# #INDENT# from django.template import Context , Template , TemplateSyntaxError #NEWLINE# try : #NEWLINE# #INDENT# t = Template ( t ) #NEWLINE# return t . render ( Context ( context_dict ) ) #NEWLINE# #UNINDENT# except TemplateSyntaxError : #NEWLINE# #INDENT# return text