def get(self, page): self.class_map = { "what_we_do": "outside/what_we_do.html", "contact_us": "outside/contact_us.html", "privacy_policy": "outside/privacy_policy.html", "terms_of_service": "outside/terms_of_service.html", } if page in self.class_map: self.response.out.write(template.render(self.class_map[page])) else: self.response.out.write(template.render("outside/base_home.html"))
def show_home(self, user): template_vars = { "user": user } self.response.headers["Content-Type"] = "text/html" landing_template = template.render("inside/base.html", template_vars) self.response.out.write(landing_template)
def credit_test(self): self.response.headers["Content-Type"] = "text/html" self.response.out.write(template.render("credit_test.html"))