Hello,
I've put together a new all-in-one page Pluto Planet Guide (Book Edition) [1]
What's Pluto? Pluto is a free planet (static) site generator in
ruby that lets you auto-build web pages from published feeds w/
embedded ruby (ERB) templates / themes and much more.
For a real-world example of Pluto live in action, see the
OpenStreetMap Blogs [2] - (setup/config/templates) [3].
Cheers.
PS: For a different intro see the Vienna.rb talk notes titled "Using
Web Feeds to Build Planet News Sites in Ruby" [4] includes a feed
reader in 20 lines or ruby e.g.:
require 'open-uri'
require 'feedparser'
require 'erb'
# step 1) read a list of web feeds
FEED_URLS = [
'http://vienna-rb.at/atom.xml',
'http://www.meetup.com/vienna-rb/events/rss/vienna.rb/',
'http://www.1stfloorgraphics.nl/blog/feed/',
'http://lab.an-ti.eu/atom.xml',
'http://abangratz.github.io/atom.xml'
]
items = []
FEED_URLS.each do |url|
feed = FeedParser::Parser.parse( open( url ).read )
items += feed.items
end
# step 2) mix up all postings in a new page
FEED_ITEM_TEMPLATE = <<EOS
<%% items.each do |item| %>
<div class="item">
<h2><a href="<%%= item.url %>"><%%= item.title %></a></h2>
<div><%%= item.content %></div>
</div>
<%% end %>
EOS
puts ERB.new( FEED_ITEM_TEMPLATE ).result
[1] http://feedreader.github.io
[2] https://blogs.openstreetmap.org
[3] https://github.com/gravitystorm/blogs.osm.org
[4] https://github.com/geraldb/talks/blob/master/webfeeds.md