【发布时间】:2018-07-07 01:09:09
【问题描述】:
我想重新发送一个 JSON 对象,其中包含从我的 EJS 模板之一生成的 HTML sn-p。
res.send({
status: "xyz",
timestamp: new Date(),
htmlContent: "" //=====> HTML snippet from template.ejs here
});
这有可能吗?谢谢!
【问题讨论】:
标签: node.js express ejs templating