diff --git a/src/hello.py b/src/hello.py deleted file mode 100644 index c5c6a73..0000000 --- a/src/hello.py +++ /dev/null @@ -1,7 +0,0 @@ -from bottle import route, run - -@route('/hello') -def hello(): - return "Hello World!" - -run(host='localhost', port=8080, debug=True) diff --git a/src/index.py b/src/index.py index 04aae79..fd73979 100644 --- a/src/index.py +++ b/src/index.py @@ -1,5 +1,7 @@ from bottle import route, run, template +nav = + @route('/') def index(): """home page""" diff --git a/src/views/index.tpl b/src/views/index.tpl index 130fef0..8279c9f 100644 --- a/src/views/index.tpl +++ b/src/views/index.tpl @@ -20,29 +20,7 @@ - + {{nav}}