【问题标题】:Meteor: How to serve a static html fileMeteor:如何提供静态 html 文件
【发布时间】:2015-05-01 02:35:53
【问题描述】:

我正在使用 Meteor 和 IRON 路由器,它非常适合动态文件。 但是我有一个我想提供的 statis legend.html 文件。 我把它放在公用文件夹中,但我收到找不到文件的错误。

由于它是从 word 生成的,我无法使用模板作为包装器。

有什么诀窍?

【问题讨论】:

    标签: meteor iron-router


    【解决方案1】:

    将静态 html 文件放在公共文件夹中, 从 url 中排除 /public:

    http://yourdomain.com/yourfile.html

    不是

    http://yourdomain.com/public/yourfile.html

    【讨论】:

    • 我以为我已经尝试过了,但似乎我犯了一个错误,因为它有效。
    猜你喜欢
    • 1970-01-01
    • 2021-10-29
    • 2019-09-28
    • 2019-08-14
    • 1970-01-01
    • 2012-10-23
    • 2015-06-05
    • 2014-08-26
    • 1970-01-01
    相关资源
    最近更新 更多