Mercurial > genshi > genshi-test
annotate examples/bench/simpletal/template.html @ 428:540dd825d072
Simplify undefined error message.
author | cmlenz |
---|---|
date | Thu, 22 Mar 2007 16:59:54 +0000 |
parents | 70ec95c8d1ea |
children |
rev | line source |
---|---|
79 | 1 <!DOCTYPE html |
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | |
5 <head> | |
6 <title tal:content="title">Title</title> | |
7 </head> | |
8 <body metal:use-macro="base/macros/content"> | |
9 <div metal:fill-slot="content"> | |
10 | |
11 <div metal:use-macro="base/macros/greeting"> | |
12 <span metal:fill-slot="name" tal:content="user" tal:omit-tag=""></span> | |
13 </div> | |
14 <div metal:use-macro="base/macros/greeting"> | |
15 <span metal:fill-slot="name" tal:omit-tag="">me</span> | |
16 </div> | |
17 <div metal:use-macro="base/macros/greeting"> | |
18 <span metal:fill-slot="name" tal:omit-tag="">world</span> | |
19 </div> | |
20 | |
21 <h2>Loop</h2> | |
22 <ul tal:condition="items"> | |
103
70ec95c8d1ea
benchmark: improved functionality of SimpleTAL example. Thanks to bruno desthuilliers for some tips.
cmlenz
parents:
79
diff
changeset
|
23 <li tal:repeat="item items" tal:content="item" |
70ec95c8d1ea
benchmark: improved functionality of SimpleTAL example. Thanks to bruno desthuilliers for some tips.
cmlenz
parents:
79
diff
changeset
|
24 tal:attributes="class python:repeat['item'].getEnd() and 'last' or None">Item</li> |
79 | 25 </ul> |
26 | |
27 </div> | |
28 </body> | |
29 </html> |