使用meteor.js的Localhost显示main.html而不是其他文件

时间:2016-06-07 20:01:56

标签: meteor localhost

我在localhost上安装meteor.js时遇到问题。 基本上我有一个图像存储在public / apple.png和与main.html相同的文件夹中,但它在页面中没有比较。 另一个有趣的事情是当我输入localhost:3000 / apple.png它没有显示图像,而是输出main.html页面。 localhost:3000 / something也是一样:它只显示main.html而不是错误。

main.html中

 <head>
      <title>simple</title>
 </head>

    <body>
      <h1>Welcome to Meteor!</h1>

      {{> hello}}
    </body>

    <template name="hello">
     <img src="apple.png" alt="Apple Computer">
    </template>

任何提示?

0 个答案:

没有答案