]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Simplify HTML templates by using HTML5 1488/head
authorJan Sarenik <jajomojo@gmail.com>
Sun, 16 Aug 2015 06:51:06 +0000 (08:51 +0200)
committerJan Sarenik <jajomojo@gmail.com>
Sun, 16 Aug 2015 06:51:06 +0000 (08:51 +0200)
demos/appengine/templates/base.html
demos/blog/templates/base.html
demos/chat/templates/index.html
demos/facebook/templates/stream.html
demos/websocket/templates/index.html

index 2030ab63af25e64f56b7fc90b1e4063ae6ddec15..7ea0efa9f36290ee029e6febcd67cbad000fb1b7 100644 (file)
@@ -1,10 +1,10 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+    <meta charset="UTF-8">
     <title>{{ handler.settings["blog_title"] }}</title>
-    <link rel="stylesheet" href="/static/blog.css" type="text/css"/>
-    <link rel="alternate" href="/feed" type="application/atom+xml" title="{{ handler.settings["blog_title"] }}"/>
+    <link rel="stylesheet" href="/static/blog.css" type="text/css">
+    <link rel="alternate" href="/feed" type="application/atom+xml" title="{{ handler.settings["blog_title"] }}">
     {% block head %}{% end %}
   </head>
   <body>
index 9d63b4dec8567e63130f4abc3ee756c52c28b8e7..e21f29a3d23f45e621435b3c133c7116651b91dc 100644 (file)
@@ -1,10 +1,10 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
+    <meta charset="UTF-8">
     <title>{{ escape(handler.settings["blog_title"]) }}</title>
-    <link rel="stylesheet" href="{{ static_url("blog.css") }}" type="text/css"/>
-    <link rel="alternate" href="/feed" type="application/atom+xml" title="{{ escape(handler.settings["blog_title"]) }}"/>
+    <link rel="stylesheet" href="{{ static_url("blog.css") }}" type="text/css">
+    <link rel="alternate" href="/feed" type="application/atom+xml" title="{{ escape(handler.settings["blog_title"]) }}">
     {% block head %}{% end %}
   </head>
   <body>
index a8708b7c9bb55a8cffbe5fb1efcbcbd59d7c2609..8916c3502b0ae8c4a721c26d7750cb82280dadda 100644 (file)
@@ -1,9 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
+    <meta charset="UTF-8">
     <title>Tornado Chat Demo</title>
-    <link rel="stylesheet" href="{{ static_url("chat.css") }}" type="text/css"/>
+    <link rel="stylesheet" href="{{ static_url("chat.css") }}" type="text/css">
   </head>
   <body>
     <div id="body">
         <form action="/a/message/new" method="post" id="messageform">
           <table>
             <tr>
-              <td><input name="body" id="message" style="width:500px"/></td>
+              <td><input name="body" id="message" style="width:500px"></td>
               <td style="padding-left:5px">
-                <input type="submit" value="{{ _("Post") }}"/>
-                <input type="hidden" name="next" value="{{ request.path }}"/>
+                <input type="submit" value="{{ _("Post") }}">
+                <input type="hidden" name="next" value="{{ request.path }}">
                 {% module xsrf_form_html() %}
               </td>
             </tr>
index 4e6fc80c6ea1da09bd7571dd03a4c0fce4c05bad..fc2566317963e924cc3576128dc22abcf24df69e 100644 (file)
@@ -1,9 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
+    <meta charset="UTF-8">
     <title>Tornado Facebook Stream Demo</title>
-    <link rel="stylesheet" href="{{ static_url("facebook.css") }}" type="text/css"/>
+    <link rel="stylesheet" href="{{ static_url("facebook.css") }}" type="text/css">
   </head>
   <body>
     <div id="body">
index 6b367492864110b6c8e947e858a827d27955b4a4..cbf2b23dbe7f0fd9918b539eba72b694c25376c6 100644 (file)
@@ -1,9 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<html>
   <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+    <meta charset="UTF-8">
     <title>Tornado Chat Demo</title>
-    <link rel="stylesheet" href="{{ static_url("chat.css") }}" type="text/css"/>
+    <link rel="stylesheet" href="{{ static_url("chat.css") }}" type="text/css">
   </head>
   <body>
     <div id="body">
         <form action="/a/message/new" method="post" id="messageform">
           <table>
             <tr>
-              <td><input name="body" id="message" style="width:500px"/></td>
+              <td><input name="body" id="message" style="width:500px"></td>
               <td style="padding-left:5px">
-                <input type="submit" value="{{ _("Post") }}"/>
-                <input type="hidden" name="next" value="{{ request.path }}"/>
+                <input type="submit" value="{{ _("Post") }}">
+                <input type="hidden" name="next" value="{{ request.path }}">
                 {% module xsrf_form_html() %}
               </td>
             </tr>