Created
December 12, 2014 00:09
-
-
Save itsbth/58941e6ad15a7087f96e to your computer and use it in GitHub Desktop.
This file contains 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 route, run, template | |
@route('/') | |
def index(): | |
return template(*['<h1>Hello, {{subject}}!</h1>'], **{'subject': 'World', }) | |
run(*[], **{'host': '0.0.0.0', 'port': '8080', }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment