def render_template ( self , source , * * kwargs_context ) : return self . jinja_env . from_string ( source ) . render ( kwargs_context )
python bottle how to use session variables in jinja2 template
r Render a template string using sandboxed environment .
def render_template(self, source, **kwargs_context):
        r"""Render a template string using sandboxed environment.

        :param source: A string containing the page source.
        :param \*\*kwargs_context: The context associated with the page.
        :returns: The rendered template.
        """
        return self.jinja_env.from_string(source).render(kwargs_context)