【问题标题】:How to include external template files in hogan-express如何在 hogan-express 中包含外部模板文件
【发布时间】:2013-12-26 17:00:58
【问题描述】:

如何在名为“layout.html”的布局文件中包含外部模板文件,如“header.html”、“sidebar.html”或“footer.html”。我正在使用基于 HOGAN JS 的 Hogan-express。

【问题讨论】:

    标签: node.js express hogan.js


    【解决方案1】:

    查看Mustache 的“部分”部分。

    您可以从问题Partials with Node.js + Express + Hogan.js中找到类似的答案

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-26
      • 2011-05-10
      相关资源
      最近更新 更多