Commits

John Mulligan committed 0478b59

add xml skeletons for atom and rss feeds

  • Participants
  • Parent commits 77c9f72

Comments (0)

Files changed (2)

skins/default/atom.xml

+<?xml version="1.0" encoding="utf-8" ?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+    <title>{{current.page.title}}</title>
+    <link href="{{ext.site_url}}"></link>
+    <link rel="self" href="{{ext.atom_url}}"></link>
+    <updated>{{ext.feed_updated}}</updated>
+
+    <author>
+        <name>{{ext.feed_author}}</name>
+    </author>
+
+    <id>{{ext.feed_id_tag}}</id>
+
+    {% for entry in ext.entries %}
+    <entry>
+        <title>{{entry.page.title}}</title>
+        <link href="{{entry.linkto}}"></link>
+        <updated>{{entry.modifiedon.atomfmt}}</updated>
+        <published>{{entry.createdon.atomfmt}}</published>
+
+        <content type="html">
+            Escaped HTML GOES HERE.
+        </content>
+
+        <id>{{entry.id_tag}}</id>
+    </entry>
+    {% endfor %}
+
+</feed>

skins/default/rss2.xml

+<?xml version="1.0"?>
+<rss version="2.0">
+<channel>
+
+  <title>{{current.page.title}}</title>
+  <link>{{ext.site_url}}</link>
+  <description>{{current.description}}</description>
+
+  {% for entry in ext.entries %}
+  <item> 
+    <title>{{entry.page.title}}</title>
+    <link>{{entry.linkto}}</link>
+    <pubDate>{{entry.createdon.rfc822fmt}}</pubDate>
+    
+    <description>
+     {{entry.content|escapex}}
+    </description>
+    
+    <guid>{{entry.linkto}}</guid>
+  </item>
+  {% endfor %}
+
+</channel>
+</rss>