【发布时间】:2017-01-12 02:44:13
【问题描述】:
试图让 html 文档能够从我的烧瓶应用程序中获取变量,但这部分位于字符串中。我该怎么办?
我试过了:
<iframe
src="https://embed.spotify.com/?uri=spotify%3Auser%3A{{playerid}}%3Aplaylist%3A{{playlistid}}&theme=white".format() width="1400" height="800" frameborder="0" allowtransparency="true">
</iframe>
但似乎不起作用。 {{playlistid}} 和 {{playerid}} 来自 python flask 应用程序,
return render_template(
"player.html", playerid = LogInfo['username'],
playlistid=LogInfo['playlist'])
【问题讨论】:
标签: python html iframe flask spotify