Mercurial > genshi > genshi-test
comparison examples/tutorial/geddit/templates/index.html @ 611:16b1be35c265
Add current code for GenshiTutorial to the `examples` directory.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 17:51:45 +0000 |
parents | |
children | 0dc152d128f5 |
comparison
equal
deleted
inserted
replaced
610:6a37018199fd | 611:16b1be35c265 |
---|---|
1 <!DOCTYPE html> | |
2 <html xmlns="http://www.w3.org/1999/xhtml" | |
3 xmlns:xi="http://www.w3.org/2001/XInclude" | |
4 xmlns:py="http://genshi.edgewall.org/"> | |
5 <xi:include href="layout.html" /> | |
6 <head> | |
7 <title>News</title> | |
8 </head> | |
9 <body> | |
10 <h1>News</h1> | |
11 <p><a href="/submit/">Submit new link</a></p> | |
12 | |
13 <ol py:if="submissions" class="submissions"> | |
14 <li py:for="submission in submissions"> | |
15 <a href="${submission.url}">${submission.title}</a> | |
16 posted by ${submission.username} | |
17 at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br /> | |
18 <div class="info"> | |
19 <a href="/info/${submission.code}/">${len(submission.total_comments)} comments</a> | |
20 </div> | |
21 </li> | |
22 </ol> | |
23 </body> | |
24 </html> |