Skip to content

Instantly share code, notes, and snippets.

@BasementCat
Created July 6, 2012 23:43
Show Gist options
  • Save BasementCat/3063431 to your computer and use it in GitHub Desktop.
Save BasementCat/3063431 to your computer and use it in GitHub Desktop.
Very, very basic Bottle.py app
from bottle import app, route
@route("/")
@route("/<name>")
def index(name=None):
out=[]
if name is not None:
out.append("%s says "%(name,))
out.append("Hello, World")
return out
if __name__=="__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment