import jinja2
template_values = {'value_name_in_html': value_name_in_python}
template = JINJA_ENVIRONMENT.get_template('file_patch')
self.response.write(template.render(template_values))
render jinja2 template without a Flask context