|
|
|
@ -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__':
|
|
|
|
|