0
我想要在NodeJS模块的外部页面中使用Swig生成视图来包含生成的HTML。我想要做的与JSTL中的<c:import/>
标记基本相同。使用Swig在NodeJS中加载外部页面
到目前为止,我已经试过这样:
{{ include http://another.webpage }}
{{ include 'http://another.webpage' }}
{% include http://another.webpage %}
{% include 'http://another.webpage' %}
但是没有一次成功。
任何帮助,将不胜感激
非常感谢您
不知道为什么有人对此投了赞成票。这是正确的答案。 – 2014-09-01 01:02:43