Skip to content

Instantly share code, notes, and snippets.

@adeel
Created July 25, 2009 04:16
Show Gist options
  • Save adeel/154689 to your computer and use it in GitHub Desktop.
Save adeel/154689 to your computer and use it in GitHub Desktop.
# 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