Mercurial > genshi > genshi-test
comparison examples/turbogears/genshitest/templates/sitetemplate.html @ 247:b8932429dbd0
the TG <body> match templates should also select text nodes to output
author | mgood |
---|---|
date | Thu, 14 Sep 2006 17:32:55 +0000 |
parents | 24757b771651 |
children |
comparison
equal
deleted
inserted
replaced
246:6fc4edebe12c | 247:b8932429dbd0 |
---|---|
6 <head py:match="head" py:attrs="select('@*')"> | 6 <head py:match="head" py:attrs="select('@*')"> |
7 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> | 7 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> |
8 <title py:replace="''">Your title goes here</title> | 8 <title py:replace="''">Your title goes here</title> |
9 <link py:for="css in tg_css" py:replace="ET(css.display())" /> | 9 <link py:for="css in tg_css" py:replace="ET(css.display())" /> |
10 <link py:for="js in tg_js_head" py:replace="ET(js.display())" /> | 10 <link py:for="js in tg_js_head" py:replace="ET(js.display())" /> |
11 ${select('*')} | 11 <meta py:replace="select('*')" /> |
12 </head> | 12 </head> |
13 <body py:match="body" py:attrs="select('@*')"> | 13 <body py:match="body" py:attrs="select('@*')"> |
14 <div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" /> | 14 <div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" /> |
15 ${select('*')} | 15 <div py:replace="select('*|text()')" /> |
16 <div py:for="js in tg_js_bodybottom" py:replace="ET(js.display())" /> | 16 <div py:for="js in tg_js_bodybottom" py:replace="ET(js.display())" /> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |