def render_template(self, plain, rich = None, **context):
self.plain = render_template([plain, plain + '<STR_LIT>'], **context)<EOL>if rich is not None:<EOL><INDENT>self.rich = render_template(rich, **context)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>self.rich = render_template(plain + '<STR_LIT>', **context)<EOL><DEDENT>except TemplateNotFound:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Render the body of the message from a template. The plain
        body will be rendered from a template named ``plain`` or 
        ``plain + '.txt'`` (in that order of preference). The rich 
        body will be rendered from ``rich`` if given, or else from 
        ``plain + '.html'``. If neither exists, then the message will
        have no rich body.