index's footer's copyright date is taken from python's datetime
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
|||||||
|
import datetime
|
||||||
from bottle import route, run, template
|
from bottle import route, run, template
|
||||||
|
|
||||||
@route('/')
|
@route('/')
|
||||||
def index():
|
def index():
|
||||||
"""home page"""
|
"""home page"""
|
||||||
info = {'news': 'News goes here', 'title': 'chimchooree\'s dev space - blessfrey', 'year': '2020'}
|
info = {'news': 'News goes here', 'title': 'chimchooree\'s dev space - blessfrey', 'year': datetime.datetime.now()}
|
||||||
return template('index.tpl', info)
|
return template('index.tpl', info)
|
||||||
|
|
||||||
@route('/game')
|
@route('/game')
|
||||||
|
|||||||
Reference in New Issue
Block a user