【问题标题】:How to run template-engine-preview-3 together with iron-router package?如何将 template-engine-preview-3 与 iron-router 包一起运行?
【发布时间】:2013-11-06 05:51:12
【问题描述】:

template-engine-preview-3如何与iron-router包一起运行?

Iron-Router package 的 Git 存储库有一个名为 shark 的分支,我认为它应该允许 Iron-Router 与流星的新模板引擎(如 template-engine-preview-3)一起使用

.meteor/释放:

template-engine-preview-3

smart.json:

{
  "packages": {
    "iron-router": {
      "git": "https://github.com/EventedMind/iron-router.git",
      "branch": "shark"
    },
    ...
  }
}

智能锁:

  ...
  "iron-router": {
    "git": "https://github.com/EventedMind/iron-router.git",
    "branch": "shark",
    "commit": "4e1ee0581d68bff422a915dacb0bd30eae10fe08"
  }
  ...

另外我运行mrt update。 Meteor 应用程序使用命令启动:meteor --release template-engine-preview-3

有人能用新的模板引擎成功运行iron-router吗?

【问题讨论】:

    标签: meteor iron-router


    【解决方案1】:

    @gadicohen 创建了一个适用于template-engine-preview-3 的补丁。您可以通过将此代码放入您的 smart.json 文件中来测试它:

    "iron-router": {
        "git": "https://github.com/gadicohen/iron-router",
        "branch": "dev"
    }
    

    【讨论】:

      【解决方案2】:

      你不能……但是。 IronRouter 尚未准备好支持新的模板引擎。

      关注https://github.com/EventedMind/iron-router/pull/238了解更多详情。

      如果你现在真的想要的话,我猜你可以分叉 Ironrouter 并插入那个补丁。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-03-04
        • 2014-01-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多