示例#1
0
def render(template_file, data = {}):
    template = jinja_environment.get_template(template_file)
    response = webapp.get_request().app.response_class()
    response.out.write(template.render(data, url_for = webapp.uri_for))
    return response
示例#2
0
def get_request():
    return webapp.get_request()