From 7a601001c1ae9933f3eb23bb0b8b5c2f4e194d97 Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Fri, 23 Aug 2013 18:09:47 +0530 Subject: [PATCH] Add simple support for site wide footer Add footer in config file. HTML is allowed. See sampleConf.py --- mouchak/sampleConf.py | 7 ++++++- mouchak/server.py | 2 +- mouchak/templates/index.html | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mouchak/sampleConf.py b/mouchak/sampleConf.py index 026bf08..d16e391 100644 --- a/mouchak/sampleConf.py +++ b/mouchak/sampleConf.py @@ -1,4 +1,9 @@ -DB = 'crin' +DB = 'mouchak_test' SITE_TITLE = 'Testing Mouchak' +SITE_FOOTER = ''' +
+ Place your site footer here +
+''' HOST = '0.0.0.0' PORT = 5000 diff --git a/mouchak/server.py b/mouchak/server.py index 65ad609..e9b584f 100644 --- a/mouchak/server.py +++ b/mouchak/server.py @@ -44,7 +44,7 @@ def getContent(): @app.route('/', methods=['GET']) def index(): return flask.render_template('index.html', content=getContent(), - title=conf.SITE_TITLE) + title=conf.SITE_TITLE, footer=conf.SITE_FOOTER) @app.route('/edit', methods=['GET']) diff --git a/mouchak/templates/index.html b/mouchak/templates/index.html index f8bec27..632a5bb 100644 --- a/mouchak/templates/index.html +++ b/mouchak/templates/index.html @@ -28,7 +28,7 @@
- +