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 head.html
is placed in the <body>
of the page. I already tried to use a block in head
but the same problem happened, how could I 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>