Sha256: c12c43e1b2af0baf8a602f6317e4ab62fa1d1b0ac4831859f34edd2cb826b763

Contents?: true

Size: 656 Bytes

Versions: 7

Compression:

Stored size: 656 Bytes

Contents

xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
  xml.title @config[:title]
  xml.id @config[:url]
  xml.updated articles.first[:date].iso8601 unless articles.empty?
  xml.author { xml.name @config[:author] }

  articles.reverse[0...10].each do |article|
    xml.entry do
      xml.title article.title
      xml.link "rel" => "alternate", "href" => article.url
      xml.id article.url
      xml.published article[:date].iso8601
      xml.updated article[:date].iso8601
      xml.author { xml.name @config[:author] }
      xml.summary article.summary, "type" => "html"
      xml.content article.body, "type" => "html"
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
toto-bongo-1.0.3 test/templates/index.builder
toto-bongo-1.0.2 test/templates/index.builder
toto-bongo-1.0.1 test/templates/index.builder
allegro-0.0.0pre3 lib/template/templates/index.builder
allegro-0.0.0pre2 lib/template/templates/index.builder
allegro-0.0.0pre1 lib/template/templates/index.builder
allegro-0.0.0pre lib/template/templates/index.builder