【发布时间】:2021-06-22 21:03:40
【问题描述】:
我想保存用数据渲染的 pugfile 的 HTML 源代码。
我的路线是:
res.render('pugfile', { data: resp });
我该怎么做?
【问题讨论】:
我想保存用数据渲染的 pugfile 的 HTML 源代码。
我的路线是:
res.render('pugfile', { data: resp });
我该怎么做?
【问题讨论】:
尝试使用此链接,看看它是否对您有帮助
The createTemplateFile function simply creates a new file if it doesn't exist.
The exportTemplateFile function saves the HTML in the html variable rendered by pug and prettifies it with the pretty package and then overwrites the new template file
那是根据那个帖子
【讨论】: