Reputation: 41220
Why does meteor not render anything when starting an HTML file with <html>
?
e.g. this works
<head>
<title>meteor-sample</title>
</head>
<body>
<div>
<h1>Welcome to Meteor!</h1>
</div>
</body>
but this does not
<html>
<head>
<title>meteor-sample</title>
</head>
<body>
<div>
<h1>Welcome to Meteor!</h1>
</div>
</body>
</html>
Primarily I am asking because my habit is to put ng-app
on the html
tag of an Angular JS application.
Upvotes: 1
Views: 42
Reputation: 1283
It's how Spacebars works. It watches only for <template>
<head>
and <body>
top elements.
You can read about this in Spacebars docs
Upvotes: 1