Esempio n. 1
0
def get_request():
    return webapp.get_request()
Esempio n. 2
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
Esempio n. 3
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))
    return response