changeset 247:cf4a125b44a1 trunk

the TG <body> match templates should also select text nodes to output
author mgood
date Thu, 14 Sep 2006 17:32:55 +0000
parents c7dd64bcde9c
children 82f2bc77ad0c
files examples/turbogears/genshitest/templates/master.html examples/turbogears/genshitest/templates/sitetemplate.html
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/examples/turbogears/genshitest/templates/master.html
+++ b/examples/turbogears/genshitest/templates/master.html
@@ -35,7 +35,7 @@
 
     <div py:if="tg_flash" class="flash" py:content="tg_flash"></div>
 
-    <div py:replace="select('*')"/>
+    <div py:replace="select('*|text()')"/>
 
     <p align="center"><img src="/static/images/tg_under_the_hood.png" alt="TurboGears under the hood"/></p>
 </body>
--- a/examples/turbogears/genshitest/templates/sitetemplate.html
+++ b/examples/turbogears/genshitest/templates/sitetemplate.html
@@ -8,11 +8,11 @@
     <title py:replace="''">Your title goes here</title>
     <link py:for="css in tg_css" py:replace="ET(css.display())" />
     <link py:for="js in tg_js_head" py:replace="ET(js.display())" />
-    ${select('*')}
+    <meta py:replace="select('*')" />
 </head>
 <body py:match="body" py:attrs="select('@*')">
     <div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" />
-    ${select('*')}
+    <div py:replace="select('*|text()')" />
     <div py:for="js in tg_js_bodybottom" py:replace="ET(js.display())" />
 </body>
 </html>
Copyright (C) 2012-2017 Edgewall Software