Instantly share code, notes, and snippets.

What would you like to do?
extension: xml
layout: nil
- erb
<% pages = @pages.find(:limit => 10,
:in_directory => 'posts',
:sort_by => 'created_at',
:reverse => true) -%>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="">
<title>Magnus Holm</title>
<subtitle>Thoughts on life, internet and programming</subtitle>
<link rel="self" type="application/atom+xml" href=""/>
<link rel="alternate" type="text/html" href=""/>
<updated><%= %></updated>
<name>Magnus Holm</name>
<% pages.each do |page|;c=page.created_at.utc%>
<title><%= page.title %></title>
<link href="<%= page.url %>"/>
<updated><%= c.xmlschema %></updated>
<published><%= c.xmlschema %></published>
<content type="html"><![CDATA[<%= %>]]></content>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment