Mercurial > genshi > genshi-test
annotate examples/tutorial/geddit/templates/index.xml @ 625:dba522b4c31d
GenshiTutorial: implemented AJAX commenting.
author | cmlenz |
---|---|
date | Fri, 31 Aug 2007 17:01:00 +0000 |
parents | 9c89e22516b4 |
children | 693a7212b348 |
rev | line source |
---|---|
622 | 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"/> | |
623
9c89e22516b4
GenshiTutorial: Minor updates to Atom feed templates.
cmlenz
parents:
622
diff
changeset
|
14 <link rel="via" href="${url('/info/%s/' % link.id)}" type="text/html"/> |
622 | 15 <id>${url('/info/%s/' % link.id)}</id> |
16 <author> | |
17 <name>${link.username}</name> | |
18 </author> | |
19 <updated>${link.time.isoformat()}</updated> | |
20 <summary>${link.title}</summary> | |
21 </entry> | |
22 | |
23 </feed> |