Commit 7a601001c1ae9933f3eb23bb0b8b5c2f4e194d97
- Diff rendering mode:
- inline
- side by side
mouchak/sampleConf.py
(6 / 1)
  | |||
1 | DB = 'crin' | ||
1 | DB = 'mouchak_test' | ||
2 | 2 | SITE_TITLE = 'Testing Mouchak' | |
3 | SITE_FOOTER = ''' | ||
4 | <div style="text-align: center;"> | ||
5 | <small> Place your site footer here </small> | ||
6 | </div> | ||
7 | ''' | ||
3 | 8 | HOST = '0.0.0.0' | |
4 | 9 | PORT = 5000 |
mouchak/server.py
(1 / 1)
  | |||
44 | 44 | @app.route('/', methods=['GET']) | |
45 | 45 | def index(): | |
46 | 46 | return flask.render_template('index.html', content=getContent(), | |
47 | title=conf.SITE_TITLE) | ||
47 | title=conf.SITE_TITLE, footer=conf.SITE_FOOTER) | ||
48 | 48 | ||
49 | 49 | ||
50 | 50 | @app.route('/edit', methods=['GET']) |
mouchak/templates/index.html
(1 / 1)
  | |||
28 | 28 | <div id="navigation"></div> | |
29 | 29 | </div> | |
30 | 30 | <div id="content-container"></div> | |
31 | <div id="footer"></div> | ||
31 | <div id="footer"> {{ footer|safe }} </div> | ||
32 | 32 | </div> | |
33 | 33 | ||
34 | 34 | <script> |