Mercurial > genshi > mirror
annotate examples/tutorial/geddit/templates/index.xml @ 1045:d7ede0cf4735 stable-0.6.x tip
Merge r1269 from trunk (fix for selecting namespaced attributes).
author | hodgestar |
---|---|
date | Thu, 20 Mar 2014 13:01:56 +0000 |
parents | 9822dfff0fd5 |
children |
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 | |
628
9822dfff0fd5
GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents:
623
diff
changeset
|
5 <title>Geddit News</title> |
622 | 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
58be58c03509
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> |