Sha256: 88b58d444e32ad76c76bc86f17bbc7d67ec2ddd49023bc85581dee64661d34ba

Contents?: true

Size: 751 Bytes

Versions: 55

Compression:

Stored size: 751 Bytes

Contents

xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
  xml.title data.config.title
  xml.subtitle data.config.tagline
  xml.id data.config.url
  xml.link "href" => data.config.url
  xml.link "href" => "#{data.config.url}/feed.xml", "rel" => "self"
  xml.updated data.blog.first.date.to_time.iso8601
  xml.author { xml.name data.config.author }

  data.blog.each do |post|
    xml.entry do
      url= "#{data.config.url}/posts/#{post.slug}"
      xml.title post.title
      xml.link "rel" => "alternate", "href" => url
      xml.id url
      xml.published post.date.to_time.iso8601
      xml.updated post.date.to_time.iso8601
      xml.author { xml.name data.config.author }
      xml.content post.body, "type" => "html"
    end
  end
end

Version data entries

55 entries across 21 versions & 1 rubygems

Version Path
gumdrop-0.2.14 lib/gumdrop/template/twitter/source/feed.xml.builder.txt
gumdrop-0.2.13 lib/gumdrop/template/source/feed.xml.builder.txt
gumdrop-0.2.13 examples/simple/source/feed.xml.builder
gumdrop-0.2.12 examples/simple/source/feed.xml.builder
gumdrop-0.2.12 lib/gumdrop/template/source/feed.xml.builder.txt
gumdrop-0.2.11 examples/simple/source/feed.xml.builder
gumdrop-0.2.11 lib/gumdrop/template/source/feed.xml.builder.txt
gumdrop-0.2.10 lib/gumdrop/template/source/feed.xml.builder.txt
gumdrop-0.2.10 examples/simple/source/feed.xml.builder
gumdrop-0.2.9 examples/simple/source/feed.xml.builder
gumdrop-0.2.9 lib/gumdrop/template/source/feed.xml.builder.txt
gumdrop-0.2.8 examples/simple/source/feed.xml.builder
gumdrop-0.2.8 lib/gumdrop/template/source/feed.xml.builder.txt
gumdrop-0.2.7 examples/simple/source/feed.xml.builder
gumdrop-0.2.7 lib/gumdrop/template/source/feed.xml.builder.txt