Mercurial > hg > bitsyblog
comparison bitsyblog/templates/atom.xml @ 35:7e7fbdc64cc1
enable atom support, this brings us to 2.0
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 13:30:18 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
34:2a43e43a7e4d | 35:7e7fbdc64cc1 |
---|---|
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 <py:choose test="bool(author)"> | |
6 <py:when test="True"> | |
7 <title>${author}'s blog</title> | |
8 <link href="${user_url(request, author)}"/> | |
9 </py:when> | |
10 | |
11 <py:otherwise> | |
12 <title>${site_name} - atom</title> | |
13 <link href="${request.application_url}"/> | |
14 </py:otherwise> | |
15 </py:choose> | |
16 | |
17 <updated>${date}</updated> | |
18 | |
19 <entry py:for="entry in blog"> | |
20 <title>${entry.title()}</title> | |
21 <link href="${permalink(request, entry)}"/> | |
22 <updated>${entry.date.isoformat()}</updated> | |
23 <summary>${entry.body}</summary> | |
24 </entry> | |
25 </feed> |