#NEWLINE# @ staticmethod #NEWLINE# def email_templates( templateVars , textTemplateFilename , htmlTemplateFilename = None ) : #NEWLINE# #INDENT# templateLoader = jinja2 . FileSystemLoader ( searchpath = '/' ) #NEWLINE# templateEnv = jinja2 . Environment ( loader = templateLoader ) #NEWLINE# text_template_file = os . path . join ( os . path . dirname ( __file__ ) , textTemplateFilename ) #NEWLINE# text_template = templateEnv . get_template ( text_template_file ) #NEWLINE# text = text_template . render ( templateVars ) #NEWLINE# html = None #NEWLINE# if ( htmlTemplateFilename is not None ) : #NEWLINE# #INDENT# html_template_file = os . path . join ( os . path . dirname ( __file__ ) , htmlTemplateFilename ) #NEWLINE# html_template = templateEnv . get_template ( html_template_file ) #NEWLINE# html = html_template . render ( templateVars ) #NEWLINE# #UNINDENT# return ( text , html )