Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/info.html @ 622:6780f1b1b20d trunk
GenshiTutorial: add Atom feeds.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 22:49:48 +0000 |
parents | 734fbb77b579 |
children | abad7c2ebe15 |
comparison
equal
deleted
inserted
replaced
621:734fbb77b579 | 622:6780f1b1b20d |
---|---|
3 xmlns:xi="http://www.w3.org/2001/XInclude" | 3 xmlns:xi="http://www.w3.org/2001/XInclude" |
4 xmlns:py="http://genshi.edgewall.org/"> | 4 xmlns:py="http://genshi.edgewall.org/"> |
5 <xi:include href="layout.html" /> | 5 <xi:include href="layout.html" /> |
6 <head> | 6 <head> |
7 <title>${link.title}</title> | 7 <title>${link.title}</title> |
8 <link rel="alternate" type="application/atom+xml" title="Geddit: ${link.title}" | |
9 href="${url('/feed/%s/' % link.id)}" /> | |
8 </head> | 10 </head> |
9 <body> | 11 <body> |
10 <h1>${link.title}</h1> | 12 <h1>${link.title}</h1> |
11 <a href="${link.url}">${link.url}</a><br /> | 13 <a href="${link.url}">${link.url}</a><br /> |
12 posted by ${link.username} at ${link.time.strftime('%x %X')}<br /> | 14 posted by ${link.username} at ${link.time.strftime('%x %X')}<br /> |
13 <a href="${url('/comment/%s/' % link.id)}">comment</a> | 15 |
16 <p><a class="action" href="${url('/comment/%s/' % link.id)}">comment</a></p> | |
17 | |
14 <ul py:if="link.comments" class="comments"> | 18 <ul py:if="link.comments" class="comments"> |
15 <li py:for="comment in link.comments"> | 19 <li py:for="idx, comment in enumerate(link.comments)" id="comment$idx"> |
16 <strong>${comment.username}</strong> | 20 <strong>${comment.username}</strong> |
17 at ${comment.time.strftime('%x %X')} | 21 at ${comment.time.strftime('%x %X')} |
18 <blockquote>${comment.content}</blockquote> | 22 <blockquote>${comment.content}</blockquote> |
19 </li> | 23 </li> |
20 </ul> | 24 </ul> |