Armed with a text editor

mu's views on program and recipe! design

<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
## see http://www.atomenabled.org/developers/syndication/
#from manager import WikiText, DoneText
#from time import localtime, strftime
#def format_atom_date(date):
#    date = localtime(int(date))
#    return strftime('%Y-%m-%dT%H:%M:%SZ', date)
#updated = max(files)[0]
<id>`manager.site + manager.document`</id>
<title>Comments on `title`</title>
<updated>`format_atom_date(updated)`</updated>
<link rel="alternate" type="text/html" href="`manager.uri`"/>
<author><name>Michael Urman</name><uri>`manager.site`</uri></author>

#for comment in comments:
#    meta = manager.load_meta(comment['document'])
#    url = '%s%s#comment-%s' % (manager.site, comment['document'], comment['index'])
<entry>
<title>Re: `meta.get('title', 'Untitled')`</title>
<link rel="alternate" type="text/html" href="`url`"/>
<author>
  <name>`comment.get('name', 'Unknown')`</name>
#    if comment.get('url'):
<url>`comment['url']`</url>
#    pass
</author>
<id>`url`</id>
<published>`format_atom_date(comment.get('issued', localtime()))`</published>
<content type="text/html" mode="escaped"><![CDATA[`WikiText(comment['comment'], manager=manager).replace(']]>',']]\\76')`]]></content>
</entry>
#pass
</feed>