#import time #from urlparse import urljoin #from xml.sax.saxutils import escape #from template import dehtml, iso8601, xmlchars Content-type: application/rss+xml $channel.title $channel.link $escape($xmlchars($channel.description)) $channel.author $iso8601() $channel.language Copyright $time.strftime("%Y") $channel.title #for $item in $Items $item.title $urljoin($channel.link,$item.link) $urljoin($channel.link,$item.link) $dehtml($item.description) $escape($item.description) $iso8601($item.mtime) $item.comments $urljoin($channel.link,$item.entry+'.tb') #end for