summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--controller.py1
-rw-r--r--templates/root.mako4
2 files changed, 3 insertions, 2 deletions
diff --git a/controller.py b/controller.py
index 85a9f13..894cd42 100644
--- a/controller.py
+++ b/controller.py
@@ -9,6 +9,7 @@ class Page:
All the general and simple pages.
"""
def GET(self, name = '/'):
+ web.header("Content-Type", "application/xhtml+xml;;charset=utf-8", unique = True)
if not name or name == '/': name = 'index'
return render(name)
diff --git a/templates/root.mako b/templates/root.mako
index 39ee098..46fd88f 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -1,8 +1,8 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
- <link rel="shortcut icon" href=${"/favicon.ico" | url} type="image/icon">
+ <link rel="shortcut icon" href=${"/favicon.ico" | url} type="image/icon" />
<title>${self.title()}</title>
${self.style()}
</head>