Created
May 21, 2016 06:51
-
-
Save nonZero/3e8fc460b91966fd71724908f7bd19e5 to your computer and use it in GitHub Desktop.
Basic bottle server with debug and reloading
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
from bottle import route, run, template | |
@route('/hello/<name>') | |
def index(name): | |
return template('<b>Hello {{name}}</b>!', name=name) | |
if __name__ == "__main__": | |
run(debug=True, reloader=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment