Skip to content

Instantly share code, notes, and snippets.

@nicolaiarocci
Created February 3, 2012 14:01
Show Gist options
  • Save nicolaiarocci/1730305 to your computer and use it in GitHub Desktop.
Save nicolaiarocci/1730305 to your computer and use it in GitHub Desktop.
render_xml = lambda message: '<message>%s</message>' % message
render_json = jsonify
render_html = lambda message: '<html><body>%s</body></html>' % message
render_txt = lambda message: message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment