【发布时间】:2014-08-06 00:14:43
【问题描述】:
今晚我安装了我的第一个流星包。我想要做的只是进一步将排行榜示例合并到较少版本的引导程序中。
具体来说,我想使用这个引导示例布局(我基本上只是复制了 html):
我一直在关注这个教程:
Meteor.js and Twitter Bootstrap - The right way
当我尝试启动应用程序时,我得到:
> $ meteor
[[[[[ ~/bootstrapApp ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:
While building the application:
bootstrapApp.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)
=> Your application has errors. Waiting for file change.
=> Modified -- restarting.
=> Errors prevented startup:
While building the application:
bootstrapApp.html:1: bad formatting in HTML template
=> Your application has errors. Waiting for file change.
我删除了文档类型,然后我收到了错误的格式错误。
我不知道 Meteor 在渲染引导 html 页面时会做什么。显然 CSS 和 JS 会在不同的目录中,所以不会被加载。
谁能告诉我如何正确加载此页面?这个我期待的很简单,新手的诅咒!
我不确定流星模板代码应该放在哪里,我只是将它们放在关闭的 html 元素之后。
提前感谢您为我提供的任何帮助。
【问题讨论】:
标签: javascript meteor twitter-bootstrap-3