Meteor:如何提供静态html文件

Big*_*oot 4 meteor iron-router

我使用Meteor与IRON路由器,它非常适合动态文件.但我有一个statis legend.html文件,我想服务.我把它放在公共文件夹中,但是我收到了无法找到该文件的错误.

因为它是从word生成的,所以我无法使用模板作为包装器.

诀窍是什么?

小智 8

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

http://yourdomain.com/yourfile.html

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