Meteor 流星火焰如何覆盖启动点?
我想创建我们的插件/模板 我当前的文件结构:Meteor 流星火焰如何覆盖启动点?,meteor,meteor-blaze,Meteor,Meteor Blaze,我想创建我们的插件/模板 我当前的文件结构: /client/ -main.js /imports/startup/ -html.js -index.js 默认文件/client/main.html包含头标记。我想将头标记替换为/imports/startup/directory // /client/main.js import '../imports/startup'; // /imports/startup/index.js import { Template } from 'met
/client/
-main.js
/imports/startup/
-html.js
-index.js
默认文件/client/main.html包含头标记。我想将头标记替换为/imports/startup/directory
// /client/main.js
import '../imports/startup';
// /imports/startup/index.js
import { Template } from 'meteor/templating';
import './index.html';
// /imports/startup/index.html
<head>
<title>index_html</title>
</head>
///client/main.js
导入“../imports/startup”;
///imports/startup/index.js
从“meteor/Templateing”导入{Template};
导入“./index.html”;
///imports/startup/index.html
索引
我得到一个错误:
未捕获错误:找不到模块“./index.html”
错误屏幕:
那是我的错
第2天:
我添加到index.html主体标记
// project_name/imports/startup/index.html
<head>
<title>index_html</title>
</head>
<body>
<p>body_html</p>
</body>
//项目名称/imports/startup/index.html
索引
正文
现在我没有得到错误:找不到模块“./index.html”,我在页面上看到“body\u html”注释。但是我在头标签里看不到我的头衔
是否可以将头标记从客户端文件夹替换为导入文件夹?您的目录根中根本没有任何名为
index.html
的文件
// /client/main.js
import '../imports/startup';
// /imports/startup/index.js
import { Template } from 'meteor/templating';
import './index.html';
// /imports/startup/index.html
<head>
<title>index_html</title>
</head>
也许你的意思是
index.js
?你的意思是:根目录~/project\u name/?你能和我分享你的全部代码吗?我不知道到底出了什么问题。无法访问您的项目。我不想给我的抄送信息。GitHub更好,请查看您链接的项目。它不包含你提到的文件:)我想这是我问题的答案。