Open valq7711 opened 1 year ago
Hi! Just want to share pip install upytl
pip install upytl
from bottle import route, run from upytl import UPYTL, html as h upytl = UPYTL() template = { h.Html(): { h.Head(): { h.Meta(charset='utf-8'): None }, h.Body(): { h.Div(Class='{some_class}'): 'Hey [[ user_name ]]! How do you do?' } } } @route('/hello') @upytl.view(template) def hello(): return dict(some_class='super-class', user_name='Man') run(host='localhost', port=8080, debug=True)
Hi! Just want to share
pip install upytl