Mercurial > genshi > genshi-test
annotate examples/bench/kid/base.kid @ 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 | e9a3930f8823 |
children |
rev | line source |
---|---|
57
b387cf24d329
Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff
changeset
|
1 <html xmlns="http://www.w3.org/1999/xhtml" |
b387cf24d329
Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff
changeset
|
2 xmlns:py="http://purl.org/kid/ns#"> |
69 | 3 |
4 <p py:def="greeting(name)"> | |
5 Hello, ${name}! | |
6 </p> | |
7 | |
8 <body py:match="item.tag == '{http://www.w3.org/1999/xhtml}body'" py:strip=""> | |
9 <div id="header"> | |
10 <h1>${title}</h1> | |
11 </div> | |
12 ${item} | |
13 <div id="footer" /> | |
14 </body> | |
57
b387cf24d329
Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff
changeset
|
15 </html> |