【发布时间】:2019-03-07 10:24:18
【问题描述】:
我正在使用 Flask 创建一个 web 应用程序,并希望为此创建一个桌面应用程序。现在在 Flask 中,我可以在 render_template 函数中传递一个列表和 HTML 文件
return render_template('index.html', someList = someList)
然后在HTML文件中使用如下:
{% for i in someList %}
#doSomething
{% endfor %}
谁能告诉我这方面的 Electron 等价物吗?
【问题讨论】:
-
您的意思是使用模板语言?如果是这样,您可以使用 React+Redux 或其他一些前端框架来创建应用程序,就像使用 Python+Pug 一样