2
I have the following files:
base.html
:
<!-- base.html -- -->
<html>
<head>
<title>Title</title>
{% include "head.html" %}
</head>
<body>
Body
</body>
</html>
head.html
:
<!-- head.html -- -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="pt-br" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
My problem is when the browser interprets the pages, the code of the head.html
are placed in the <body>
page. I’ve tried using a block on head
but the same problem happened, how I could solve this problem?
The browser interprets this way:
<html>
<head>
<title>Title</title>
</head>
<body>
""
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="pt-br" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
Body
</body>
</html>