diff examples/turbogears/genshitest/templates/master.html @ 500:0742f421caba experimental-inline

Merged revisions 487-603 via svnmerge from http://svn.edgewall.org/repos/genshi/trunk
author cmlenz
date Fri, 01 Jun 2007 17:21:47 +0000
parents b8932429dbd0
children
line wrap: on
line diff
--- a/examples/turbogears/genshitest/templates/master.html
+++ b/examples/turbogears/genshitest/templates/master.html
@@ -1,43 +1,36 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:py="http://genshi.edgewall.org/"
-      xmlns:xi="http://www.w3.org/2001/XInclude"
       py:strip="">
-
-<xi:include href="sitetemplate.html"><xi:fallback/></xi:include>
+  <xi:include href="sitetemplate.html"><xi:fallback/></xi:include>
 
-<head py:match="head" py:attrs="select('@*')">
-    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
+  <head py:match="head" py:attrs="select('@*')">
+    <meta content="text/html; charset=UTF-8" http-equiv="content-type"
+          py:replace="''" />
     <title py:replace="''">Your title goes here</title>
-    <meta py:replace="select('*')"/>
+    <meta py:replace="select('*')" />
     <style type="text/css">
-        #pageLogin
-        {
-            font-size: 10px;
-            font-family: verdana;
-            text-align: right;
-        }
+      #pageLogin { font-size: 10px; font-family: verdana; text-align: right; }
     </style>
-</head>
+  </head>
 
-<body py:match="body" py:attrs="select('@*')">
-    <div py:if="tg.config('identity.on',False) and not logging_in"
-        id="pageLogin"
-        py:choose="">
-        <span py:when="tg.identity.anonymous">
-            <a href="/login">Login</a>
-        </span>
-        <span py:otherwise="">
-            Welcome ${tg.identity.user.display_name}.
-            <a href="/logout">Logout</a>
-        </span>
+  <body py:match="body" py:attrs="select('@*')">
+    <div id="pageLogin"
+         py:if="tg.config('identity.on', False) and not value_of('logging_in')"
+         py:choose="">
+      <span py:when="tg.identity.anonymous">
+        <a href="/login">Login</a>
+      </span>
+      <span py:otherwise="">
+        Welcome ${tg.identity.user.display_name}.
+        <a href="/logout">Logout</a>
+      </span>
     </div>
-
     <div py:if="tg_flash" class="flash" py:content="tg_flash"></div>
-
-    <div py:replace="select('*|text()')"/>
-
+    <div py:replace="select('*|text()')" />
     <p align="center"><img src="/static/images/tg_under_the_hood.png" alt="TurboGears under the hood"/></p>
-</body>
+  </body>
 
 </html>
Copyright (C) 2012-2017 Edgewall Software