def template(self, template_name, context=None):
    if (context is None):
        context = {}
    return self.templates_env.get_template(template_name).render(**context)
def template(self, template_name, context=None):
    if (context is None):
        context = {}
    return self.templates_env.get_template(template_name).render(**context)