Exemplo n.º 1
0
 def render_response(self, _template, context = None):
     # Renders a template and writes the result to the response.
     if context is None:
         context = self.context
     # Put things that are needed in all templates here
     context["profile"] = UserProfile.get_current_user()
     rv = self.jinja2.render_template(_template, **context)
     self.response.write(rv)