Mercurial > hg > bitsyblog
view bitsyblog/templates/atom.xml @ 74:2c219b788648
dont let handlers kill the blog
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 15 Sep 2010 10:34:14 -0700 |
parents | 7e7fbdc64cc1 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:py="http://genshi.edgewall.org/"> <py:choose test="bool(author)"> <py:when test="True"> <title>${author}'s blog</title> <link href="${user_url(request, author)}"/> </py:when> <py:otherwise> <title>${site_name} - atom</title> <link href="${request.application_url}"/> </py:otherwise> </py:choose> <updated>${date}</updated> <entry py:for="entry in blog"> <title>${entry.title()}</title> <link href="${permalink(request, entry)}"/> <updated>${entry.date.isoformat()}</updated> <summary>${entry.body}</summary> </entry> </feed>