我正在从烧瓶切换到瓶子,我需要在网页上显示SSID。
我的烧瓶脚本是:
Python:
return render_template('home.html', form=form, ssid=ssid)
HTML:
<p>Device name: {{ ssid }}</p>
我找不到在瓶子里怎么做的。
使用模板功能:
from bottle import template return template('home.html', ssid=ssid)