Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/index.xml @ 622:6780f1b1b20d trunk
GenshiTutorial: add Atom feeds.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 22:49:48 +0000 |
parents | |
children | 58be58c03509 |
comparison
equal
deleted
inserted
replaced
621:734fbb77b579 | 622:6780f1b1b20d |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <feed xmlns="http://www.w3.org/2005/Atom" | |
3 xmlns:py="http://genshi.edgewall.org/"> | |
4 | |
5 <title>Geddit</title> | |
6 <id href="${url('/')}"/> | |
7 <link rel="alternate" href="${url('/')}" type="text/html"/> | |
8 <link rel="self" href="${url('/feed/')}" type="application/atom+xml"/> | |
9 <updated>${links[0].time.isoformat()}</updated> | |
10 | |
11 <entry py:for="link in reversed(links)"> | |
12 <title>${link.url}</title> | |
13 <link rel="alternate" href="${link.url}" type="text/html"/> | |
14 <id>${url('/info/%s/' % link.id)}</id> | |
15 <author> | |
16 <name>${link.username}</name> | |
17 </author> | |
18 <updated>${link.time.isoformat()}</updated> | |
19 <summary>${link.title}</summary> | |
20 </entry> | |
21 | |
22 </feed> |