Mercurial > genshi > mirror
comparison examples/bench/markup/template.html @ 76:85f70ec37112 trunk
Add Django to the benchmark.
author | cmlenz |
---|---|
date | Thu, 13 Jul 2006 09:17:21 +0000 |
parents | c40a5dcd2b55 |
children | d60486018004 |
comparison
equal
deleted
inserted
replaced
75:3722696d0343 | 76:85f70ec37112 |
---|---|
8 <xi:include href="base.html" /> | 8 <xi:include href="base.html" /> |
9 <head> | 9 <head> |
10 <title>${title}</title> | 10 <title>${title}</title> |
11 </head> | 11 </head> |
12 <body> | 12 <body> |
13 <div>${greeting('you')}</div> | 13 <div>${greeting(user)}</div> |
14 <div>${greeting('me')}</div> | 14 <div>${greeting('me')}</div> |
15 <div>${greeting('all the others')}</div> | 15 <div>${greeting('world')}</div> |
16 | 16 |
17 <h2>Loop</h2> | 17 <h2>Loop</h2> |
18 <ul py:if="items"> | 18 <ul py:if="items"> |
19 <li py:for="idx, item in enumerate(items)" py:content="item" | 19 <li py:for="idx, item in enumerate(items)" py:content="item" |
20 class="${idx == len(items) and 'last' or None}" /> | 20 class="${idx == len(items) and 'last' or None}" /> |