Skip to content

Instantly share code, notes, and snippets.

@zeekay
Created September 29, 2011 13:33
Show Gist options
  • Save zeekay/1250729 to your computer and use it in GitHub Desktop.
Save zeekay/1250729 to your computer and use it in GitHub Desktop.
from bottle import install, get, run
def plugin(callback):
def wrapper(*args, **kwargs):
print args, kwargs
return callback(*args, **kwargs)
return wrapper
install(plugin)
@get('/')
@get('/:name')
def hello(name='World'):
return 'Hello %s' % name
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment