当我运行它时,浏览器中没有显示任何内容。
HTML:
<head>
<title>projectsiddharth</title>
</head>
<body>
<h1>Hello from india!</h1>
<div class="java">{{> timetemplate}}</div>
<template name="timetemplate">
<p>The time is now {{time}}</p>
</template>
</body>
JS:
if (Meteor.isClient) {
var data = {time: new Date()};
Template.timetemplate.helpers(data);
}
if (Meteor.isServer) {
}
我是meteor的新手,请多多包涵。这段代码用于显示当前时间。需要帮助,谢谢。