baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax
http://ectjs.com
MIT License
626 stars 70 forks source link

Template in HEAD pushes content to body #92

Open ghost opened 9 years ago

ghost commented 9 years ago

Including templates in to the HEAD section of the page pushes all later HEAD content down to the body:

<head>
<% include 'favicon' %>
<title>sustainer.io<%- @title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

Results in this in the DOM upon display:

<head></head>
<link rel="icon" type="image/png" sizes="192x192" href="/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<title>sustainer.io<%- @title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1">

Is this normal behavior?