Mercurial > genshi > genshi-test
comparison examples/tutorial/geddit/templates/index.html @ 720:f0bb2c5ea0ff experimental-newctxt
newctxt branch: Merged revisions [678:835] via svnmerge from [source:trunk].
author | cmlenz |
---|---|
date | Fri, 11 Apr 2008 08:42:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
567:7f49cc5eb6e3 | 720:f0bb2c5ea0ff |
---|---|
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 <link rel="alternate" type="application/atom+xml" title="Geddit" | |
9 href="${url('/feed/')}" /> | |
10 </head> | |
11 <body class="index"> | |
12 <h1>News</h1> | |
13 | |
14 <ol py:if="links" class="links"> | |
15 <li py:for="link in links"> | |
16 <a href="${link.url}">${link.title}</a> | |
17 posted by ${link.username} at ${link.time.strftime('%x %X')} | |
18 <div class="info"> | |
19 <a href="${url('/info/%s/' % link.id)}"> | |
20 ${len(link.comments)} comments | |
21 </a> | |
22 </div> | |
23 </li> | |
24 </ol> | |
25 | |
26 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> | |
27 </body> | |
28 </html> |