mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
src/httpserver.py: use HTML5.
This commit is contained in:
parent
7b7b93eee6
commit
cedae0244c
@ -55,10 +55,10 @@ class RequestNotHandled(Exception):
|
|||||||
|
|
||||||
DEFAULT_TEMPLATES = {
|
DEFAULT_TEMPLATES = {
|
||||||
'index.html': """\
|
'index.html': """\
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
||||||
<head>
|
<meta charset="UTF-8" />
|
||||||
<title>""" + _('Supybot Web server index') + """</title>
|
<title>""" + _('Supybot Web server index') + """</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/default.css" media="screen" />
|
<link rel="stylesheet" type="text/css" href="/default.css" media="screen" />
|
||||||
</head>
|
</head>
|
||||||
@ -71,10 +71,10 @@ DEFAULT_TEMPLATES = {
|
|||||||
</body>
|
</body>
|
||||||
</html>""",
|
</html>""",
|
||||||
'generic/error.html': """\
|
'generic/error.html': """\
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE html>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
<title>%(title)s</title>
|
<title>%(title)s</title>
|
||||||
<link rel="stylesheet" href="/default.css" />
|
<link rel="stylesheet" href="/default.css" />
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user