From 6f841349ae97614dcabe5b618adf00fdce89c381 Mon Sep 17 00:00:00 2001 From: Mimi Momo Date: Mon, 21 Sep 2020 23:54:51 -0500 Subject: [PATCH] removed hello world; probably broken, trying to add navigation segment for index --- src/hello.py | 7 ------- src/index.py | 2 ++ src/views/index.tpl | 24 +----------------------- 3 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 src/hello.py 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}}