This feed does not validate.
<%path = File.dirname(__FILE__)$:.unshift path + '/lib'require 'bluecloth'require 'time'require 'yaml' channel_description = String.new( "Blogstrapping is Chad Perrin's development blog, focusing on Lump development, software design, and the philosophy of programming.") channel_date = Time.now.gmtime.rfc2822.sub('-', '+') puts '<?xml version="1.0" encoding="iso-8859-1"?>'puts '<rss version="2.0">'puts '<channel>'puts puts ' <title>blogstrapping</title>'puts ' <link>http://blogstrapping.com</link>'puts " <description>#{channel_description}</description>"puts " <lastBuildDate>#{channel_date}</lastBuildDate>"puts " <language>en-us</language>"puts config = YAML.load_file(path + '/lump.conf')content_path = "#{path}/#{config['body']['content_dir'].to_s}" content_listing = Dir.entries(content_path).select do |f| f.match /.*\.txt$/end content_listing.sort.reverse.each do |entry_page| entry_id = entry_page.sub('.txt', '') entry_date = Time.gm( entry_id ).gmtime.rfc2822.sub('-','+') entry_description = BlueCloth.new( File.open("#{content_path}/#{entry_page}").read ).to_html puts ' <item>' print ' <title>' File.open("#{content_path}/#{entry_page}", 'r') do |c| print c.readline.sub(/^#+\s+/, '').chomp end puts '</title>' puts " <link>http://blogstrapping.com/?page=#{entry_id}</link>" puts " <guid>http://blogstrapping.com/?page=#{entry_id}</guid>" puts " <pubDate>#{entry_date}</pubDate>" puts " <description>#{entry_description}</description>" puts ' </item>' putsend puts '</channel>'print '</rss>'%>