# Crawlable Super DRY Sitemaps for Rails and Sinatra Apps (works on Heroku!) ## Usage ### Install sudo gem install crawlable ### Sitemap (`config/sitemap.rb`) Sitemap "http://www.example.com" do link articles_path, :priority => 0.7, :changes => 'daily' Post.all.each do |a| link articles_path(a), :updated_at => a.updated_at do image images_path(a.featured_image) end end end #### Result /articles 2010-06-20T09:38:26+00:00 daily 0.7 /articles/title-0 2010-06-20T09:38:26+00:00 weekly 0.5 /articles/title-1 2010-06-20T09:38:26+00:00 weekly 0.5 ... ### Feed Feed do title "My RSS Feed" author "Lance Pollard" description "Something nice and tidy" Post.all.each do |a| entry "/posts/#{a.to_param}", :updated_at => a.updated_at, :title => a.title end end ## Features - Works on Heroku - Pings Google, Bing, Yahoo!, and Ask whenever anything changes ## Alternatives - [SitemapGenerator](http://github.com/kjvarga/sitemap_generator) - [Sitemap](http://github.com/queso/sitemap) - [BigSitemap](http://github.com/alexrabarts/big_sitemap) - [Sitemap (diff than above)](http://github.com/flyerhzm/sitemap) - [SitemapGenerator (diff than above)](http://github.com/christianhellsten/sitemap-generator) - [Sitemapper](http://github.com/milk-it/sitemapper) ## Resources - [Official Sitemap Protocol](http://sitemaps.org/protocol.php) - [Official RSS Feed Spec](http://cyber.law.harvard.edu/rss/rss.html) - [Sitemap Engine List](http://en.wikipedia.org/wiki/Sitemap_index) - [Yahoo Site Explorer](http://developer.yahoo.com/search/siteexplorer/V1/updateNotification.html) - [Comparison of Feed Aggregators](http://en.wikipedia.org/wiki/Comparison_of_feed_aggregators)