<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <atom:link href="%($base_url^$req_path%)" rel="self" type="application/rss+xml" />
        <title><![CDATA[%($siteTitle%)]]></title>
        <link>%($base_url^$req_path%)</link>
        <description><![CDATA[%($icoDesc%)]]></description>
        <language>en-us</language>
        <generator>werc ico app</generator>
        <lastBuildDate>%($lastBuildDate%)</lastBuildDate>
%{
        for(f in `{get_post_list $ico_root$ico_dirs}){
            statpost $f
%}
        <item>
            <title><![CDATA[%($title%)]]></title>
            <link>%($post_uri%)</link>
            <guid isPermaLink="true">%($post_uri%)</guid>
            <pubDate>%($pubdate%)</pubDate>
            <description><![CDATA[%($summary%)]]></description>
            <category>%($categories%)</category>
        </item>
%        }
    </channel>
</rss>
