我正在尝试将在 NodeJS 模块中的外部页面中生成的 HTML 包含在内,使用 Swig 来生成视图。我想要做的基本上与您<c:import/>
在 JSTL 中使用标记所获得的行为相同。
到目前为止,我已经尝试过:
{{ include http://another.webpage }}
{{ include 'http://another.webpage' }}
{% include http://another.webpage %}
{% include 'http://another.webpage' %}
但他们都没有工作。
任何帮助,将不胜感激
非常感谢