parameters are moved to dictionary in the index python script

small-nav
Mimi Momo 4 years ago
parent c61909ecc6
commit 5df3535428

@ -3,7 +3,7 @@ from bottle import route, run, template
@route('/') @route('/')
def index(): def index():
"""home page""" """home page"""
info = {'news': 'News goes here'} info = {'news': 'News goes here', 'title': 'chimchooree\'s dev space - blessfrey', 'year': '2020'}
return template('index.tpl', info) return template('index.tpl', info)
@route('/game') @route('/game')

@ -1,6 +1,6 @@
<!--Footer--> <!--Footer-->
<footer> <footer>
<div class="footer"> <div class="footer">
&#169 chimchooree<br> &#169 chimchooree {{year}}<br>
</div> </div>
</footer> </footer>

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
% rebase('frame.tpl', title='chimchooree\'s dev space - blessfrey') % rebase('frame.tpl')
<div class="body-row"> </div> <div class="body-row"> </div>
<div class="social"> <div class="social">

Loading…
Cancel
Save