Javascript Meteor.js公用文件夹不提供.html文件
我有一个来自谷歌的.html文件,我需要在Javascript Meteor.js公用文件夹不提供.html文件,javascript,node.js,meteor,meteorite,iron-router,Javascript,Node.js,Meteor,Meteorite,Iron Router,我有一个来自谷歌的.html文件,我需要在http://www.domain.com/google1234567890123456.html。我将.html文件放入pathToMeteorApp/public/中,但当我访问该URL时,Meteor为我提供了一个带有一些模板的空页面 我使用的是iron router,因此,即使.html文件位于公用文件夹中,路由器是否仍在管理.html文件的url?如果是这样,我们如何防止这种情况,并直接在该url上提供.html文件 我会尝试创建一条路线: R
http://www.domain.com/google1234567890123456.html
。我将.html文件放入pathToMeteorApp/public/
中,但当我访问该URL时,Meteor为我提供了一个带有一些模板的空页面
我使用的是iron router
,因此,即使.html文件位于公用文件夹中,路由器是否仍在管理.html文件的url?如果是这样,我们如何防止这种情况,并直接在该url上提供.html文件
我会尝试创建一条路线:
Router.map(function() {
this.route('google', {
path: '/google1234567890123456.html'
});
});
和模板:
<template name="google">
<!-- Your google1234567890123456.html content in <body></body> here -->
</template>
这是可能的。你能分享你定义的铁路线吗?@ChristianF-Sure,用路线更新帖子
//client code
Template.google.rendered = function() {
//execute google scripts
}