|
|
@ -3,6 +3,12 @@ from bottle import route, run, template
|
|
|
|
|
|
|
|
|
|
|
|
# diary
|
|
|
|
# diary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_snippets():
|
|
|
|
|
|
|
|
return "snippet"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def make_latest():
|
|
|
|
|
|
|
|
return "latest"
|
|
|
|
|
|
|
|
|
|
|
|
# Webpages
|
|
|
|
# Webpages
|
|
|
|
|
|
|
|
|
|
|
|
@route('/')
|
|
|
|
@route('/')
|
|
|
@ -26,7 +32,7 @@ def presskit():
|
|
|
|
@route('/diary')
|
|
|
|
@route('/diary')
|
|
|
|
def diary():
|
|
|
|
def diary():
|
|
|
|
"""diary page"""
|
|
|
|
"""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)
|
|
|
|
return template('diary.tpl', info)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if __name__ == '__main__':
|
|
|
|