comparison examples/tutorial/geddit/templates/index.xml @ 622:dc35e9882390

GenshiTutorial: add Atom feeds.
author cmlenz
date Thu, 30 Aug 2007 22:49:48 +0000
parents
children 9c89e22516b4
comparison
equal deleted inserted replaced
621:d218020fb92a 622:dc35e9882390
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>
Copyright (C) 2012-2017 Edgewall Software