Skip to content

Instantly share code, notes, and snippets.

@6a6f6a6f
Created February 23, 2022 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 6a6f6a6f/e7542bd48a4d68638cd4449666873ac9 to your computer and use it in GitHub Desktop.
Save 6a6f6a6f/e7542bd48a4d68638cd4449666873ac9 to your computer and use it in GitHub Desktop.
def render_string(self, s):
self.response.out.write(s)
def get(self):
message = f"Sorry, no results were found for {self.request.get('query', 'empty]')}."
self.render_string(page_header + message + page_footer)
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment