annotate examples/bench/markup/template.html @ 183:35e768b0a58b

Follow-up to [227]. Forgot to rename one instance of `Attributes`.
author cmlenz
date Mon, 21 Aug 2006 23:06:38 +0000
parents cc034182061e
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 <!DOCTYPE html
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
61
33c2702cf6da Use a different namespace than Kid uses.
cmlenz
parents: 57
diff changeset
5 xmlns:py="http://markup.edgewall.org/"
57
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
6 xmlns:xi="http://www.w3.org/2001/XInclude"
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
7 lang="en">
69
e9a3930f8823 A couple of minor performance improvements.
cmlenz
parents: 61
diff changeset
8 <xi:include href="base.html" />
57
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
9 <head>
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
10 <title>${title}</title>
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
11 </head>
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
12 <body>
76
37f128d2d7f4 Add Django to the benchmark.
cmlenz
parents: 69
diff changeset
13 <div>${greeting(user)}</div>
69
e9a3930f8823 A couple of minor performance improvements.
cmlenz
parents: 61
diff changeset
14 <div>${greeting('me')}</div>
76
37f128d2d7f4 Add Django to the benchmark.
cmlenz
parents: 69
diff changeset
15 <div>${greeting('world')}</div>
57
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
16
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
17 <h2>Loop</h2>
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
18 <ul py:if="items">
69
e9a3930f8823 A couple of minor performance improvements.
cmlenz
parents: 61
diff changeset
19 <li py:for="idx, item in enumerate(items)" py:content="item"
81
cc034182061e Template expressions are now compiled to Python bytecode.
cmlenz
parents: 76
diff changeset
20 class="${idx + 1 == len(items) and 'last' or None}" />
57
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
21 </ul>
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
22
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
23 </body>
b387cf24d329 Add some simple benchmarks to compare performance against Clearsilver, Kid, Cheetah, and more soon.
cmlenz
parents:
diff changeset
24 </html>
Copyright (C) 2012-2017 Edgewall Software