【发布时间】:2023-10-23 13:19:01
【问题描述】:
我正在尝试将在外部页面中生成的 HTML 包含在 NodeJS 模块中,使用 Swig 来生成视图。我想要做的基本上与您在 JSTL 中使用 <c:import/> 标记所获得的行为相同。
到目前为止我已经尝试过了:
{{ include http://another.webpage }}{{ include 'http://another.webpage' }}{% include http://another.webpage %}{% include 'http://another.webpage' %}
但它们都不起作用。
任何帮助将不胜感激
非常感谢
【问题讨论】:
标签: javascript node.js include swig-template