【问题标题】:Node: Mustache templates on both server and client节点:服务器和客户端上的 Mustache 模板
【发布时间】:2012-11-06 21:58:27
【问题描述】:

我想在 node.js/express/hogan 中使用 mustache 模板。
但我也想在客户端上使用带有 ember.js 的 mustache 模板

这个问题通常是如何解决的? 我应该在服务器/客户端上使用不同的模板引擎吗?

【问题讨论】:

    标签: node.js mustache


    【解决方案1】:

    我更改了 Hogan 中的分隔符: app.locals.delimiters = '[[ ]]';

    这很好用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-04
      • 1970-01-01
      • 2012-02-11
      相关资源
      最近更新 更多