Skip to content

Instantly share code, notes, and snippets.

@benhosmer
Created September 9, 2012 00:49
Show Gist options
  • Save benhosmer/3681694 to your computer and use it in GitHub Desktop.
Save benhosmer/3681694 to your computer and use it in GitHub Desktop.
Using bottle.py to print a list with line breaks
from bottle import route, run
@route('/')
def index(name=['hello', 'World', 'me']):
return '<br>'.join(name)
run(host='localhost', port=9090)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment