Created
September 29, 2011 13:33
-
-
Save zeekay/1250729 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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