variables are filled using python methods

small-nav
Mimi Momo 4 years ago
parent 08f187c300
commit fa9d59bf5a

@ -3,6 +3,12 @@ from bottle import route, run, template
# diary
def make_snippets():
return "snippet"
def make_latest():
return "latest"
# Webpages
@route('/')
@ -26,7 +32,7 @@ def presskit():
@route('/diary')
def diary():
"""diary page"""
info = {'title': 'blessfrey - about the game', 'year': datetime.datetime.now(), 'snippets': 'snippet', 'latest': 'latest'}
info = {'title': 'blessfrey - about the game', 'year': datetime.datetime.now(), 'snippets': make_snippets(), 'latest': make_latest()}
return template('diary.tpl', info)
if __name__ == '__main__':

Loading…
Cancel
Save