Sha256: 7c4b8ab346c7a30b71c95a910432986c09d51b041531c55f33bace8572382d4c

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title (@blog.title) ? @blog.title : "Unnamed Blog"
    xml.description (@blog.description) ? @blog.description : ""
    xml.link posts_url

    for post in @posts
      xml.item do
        xml.title post.title
        xml.description @markdown_parser.markdown_to_html(post.body).html_safe
        xml.pubDate post.created_at.to_s(:rfc822)
        xml.link post_url(post)
        xml.guid post_url(post)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
almanac-0.5.3 app/views/almanac/posts/index.rss.builder
almanac-0.5.2 app/views/almanac/posts/index.rss.builder
almanac-0.5.1 app/views/almanac/posts/index.rss.builder
almanac-0.5.0 app/views/almanac/posts/index.rss.builder
almanac-0.4.5 app/views/almanac/posts/index.rss.builder
almanac-0.4.4 app/views/almanac/posts/index.rss.builder