Skip to content
Newer
Older
100644 33 lines (31 sloc) 1.1 KB
1186956 @runpaint Generate Atom feed, and link to it from pages.
authored May 13, 2009
1 <?xml version="1.0" encoding="utf-8"?>
2 <feed xmlns="http://www.w3.org/2005/Atom"
3 xmlns:thr="http://purl.org/syndication/thread/1.0">
4 <link rel="self" href="http://vim.runpaint.org/index.atom"/>
5 <id>http://vim.runpaint.org/index.atom</id>
6 <title>Vim Recipes</title>
7 <subtitle>A cookbook for the Vim text editor</subtitle>
8 <author>
9 <name>Run Paint Run Run</name>
10 <email>runrun@runpaint.org</email>
11 <uri>http://runpaint.org/</uri>
12 </author>
8f68074 @runpaint Feed: Use full URL for entry links; set <updated>.
authored May 13, 2009
13 <% require 'time' %>
14 <updated><%= updated.xmlschema %></updated>
1186956 @runpaint Generate Atom feed, and link to it from pages.
authored May 13, 2009
15 <link href="http://vim.runpaint.org/"/>
16 <link rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"/>
17
18 <%
19 toc.each do |entry|
20 next unless entry[:type] == :recipe
21 %>
22 <entry>
23 <id>tag:vim.runpaint.org,2009:<%= entry[:id] %></id>
8f68074 @runpaint Feed: Use full URL for entry links; set <updated>.
authored May 13, 2009
24 <link href="http://vim.runpaint.org/<%= entry[:section_id] %>/<%= entry[:id] %>/"/>
1186956 @runpaint Generate Atom feed, and link to it from pages.
authored May 13, 2009
25 <title><%= entry[:title] %></title>
26 <updated><%= entry[:time].xmlschema %></updated>
27 <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
28 <%= entry[:body] %>
29 </div></content>
30 </entry>
31 <% end %>
32 </feed>
Something went wrong with that request. Please try again.