#from xml.sax.saxutils import escape #from urlparse import urljoin #from template import format_date, xmlchars, html2xml #import os,time,re #set ContentType = "text/html; charset=utf-8" #if $os.environ.get('HTTP_ACCEPT', '').find('application/xhtml+xml') > -1 ##if $os.environ.get('HTTP_ACCEPT', '').find('application/xhtml+xml;q=0') == -1 #set ContentType = "application/xhtml+xml; charset=utf-8" ##end if #end if Content-type: $ContentType #if $os.environ.get('HTTP_USER_AGENT', '').find('MSIE') > -1 X-UA-Compatible IE=7 #end if #set $date = $format_date($path) #if $date $xmlchars($channel.title): $date #else $xmlchars($channel.title) #end if #if $age <= 90 #if $channel.alternate.find('index') >= 0 #else #end if #end if

$channel.host

$xmlchars($channel.description)

#set prevhead = '' #for $item in $Items
#if $item.title #set $item['title']=$html2xml($item.title) #else #set $item['title']=$html2xml($item.entry) #end if #if $date

$item.title

#else

$item.title

#end if
#if $item.description.find('

')<0 $html2xml($item.description.strip) #else $html2xml($item.description.strip) #end if

#end for