Mercurial > genshi > mirror
annotate examples/bench/markup/base.html @ 92:01d36818bb3d trunk
More performance improvements... this time for whitespace normalization and template loops.
author | cmlenz |
---|---|
date | Thu, 20 Jul 2006 23:06:36 +0000 |
parents | d60486018004 |
children |
rev | line source |
---|---|
69 | 1 <html xmlns="http://www.w3.org/1999/xhtml" |
2 xmlns:py="http://markup.edgewall.org/" | |
3 py:strip=""> | |
4 | |
5 <p py:def="greeting(name)"> | |
6 Hello, ${name}! | |
7 </p> | |
8 | |
81
d60486018004
Template expressions are now compiled to Python bytecode.
cmlenz
parents:
69
diff
changeset
|
9 <body py:match="body"> |
69 | 10 <div id="header"> |
11 <h1>${title}</h1> | |
12 </div> | |
13 ${select('*')} | |
14 <div id="footer" /> | |
81
d60486018004
Template expressions are now compiled to Python bytecode.
cmlenz
parents:
69
diff
changeset
|
15 </body> |
69 | 16 |
17 </html> |