Created
July 25, 2009 04:16
-
-
Save adeel/154689 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
# test.py | |
@cmd('^$') | |
def index(): | |
# this is what shows up when you run python test.py | |
return "Welcome to test.py..." | |
@get('^hello (.+)$') | |
def hello(name): | |
# this shows up when you run python test.py hello <name> | |
return "Hello, %s!" % name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment