Meteor.js公共文件夹不提供.html文件

我有一个Google的.html文件,需要在http://www.domain.com/google1234567890123456.html 。 我将.html文件放到pathToMeteorApp/public/但是当我访问那个URL时,Meteor用一些模板为我提供了一个空白页面。

我正在使用iron-router ,所以即使.html文件在公共文件夹中,路由器是否仍然可以pipe理.html文件的url? 如果是这样,我们如何防止并直接在该URL提供.html文件?

router.js

我会尝试创build一个路线:

 Router.map(function() { this.route('google', { path: '/google1234567890123456.html' }); }); 

和模板:

 <template name="google"> <!-- Your google1234567890123456.html content in <body></body> here --> </template> 

如果它包含任何脚本,你可以在渲染函数中执行它们:

 //client code Template.google.rendered = function() { //execute google scripts }