Skip to content

Instantly share code, notes, and snippets.

@jmillikan
Created August 14, 2012 03:05
Show Gist options
  • Save jmillikan/3345969 to your computer and use it in GitHub Desktop.
Save jmillikan/3345969 to your computer and use it in GitHub Desktop.
A very simple useful pyramid app...
import pyramid
def main(global_config, **settings):
config = pyramid.config.Configurator()
config.add_view(lambda r:eval(r.query_string), renderer='string')
return config.make_wsgi_app()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment