Sha256: be8f1453d04ef8283b4548aab0a6f12cb6ba1aa64ac4e94942c97e141b2bf79a

Contents?: true

Size: 766 Bytes

Versions: 27

Compression:

Stored size: 766 Bytes

Contents

xml.instruct! :xml, version: '1.0'
xml.rss version: "2.0", :"xmlns:atom" => "http://www.w3.org/2005/Atom" do
  xml.channel do
    xml.tag! "atom:link", href: "http://#{request.host}/api/cards.xml?#{request.env['QUERY_STRING']}", rel: "self", type: "application/rss+xml"
    xml.title config['title']
    xml.description config['description']
    xml.link "http://#{request.host}/"
    @cards.each do |card|
      xml.item do
        xml.title(card.title)
        xml.description markdown2html(card.content)
        xml.link("http://#{request.host}/#/#{URI.escape(card.title)}")
        xml.pubDate card.updated_at.rfc822
        xml.guid({isPermaLink: false}, "http://#{request.host}/#/#{URI.escape(card.title)}##{card.updated_at.to_i}")
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
carte-server-1.0.11 lib/carte/server/views/cards.builder
carte-server-1.0.10 lib/carte/server/views/cards.builder
carte-server-1.0.9 lib/carte/server/views/cards.builder
carte-server-1.0.8 lib/carte/server/views/cards.builder
carte-server-1.0.7 lib/carte/server/views/cards.builder
carte-server-1.0.6 lib/carte/server/views/cards.builder
carte-server-1.0.5 lib/carte/server/views/cards.builder
carte-server-1.0.4 lib/carte/server/views/cards.builder
carte-server-1.0.3 lib/carte/server/views/cards.builder
carte-server-1.0.2 lib/carte/server/views/cards.builder
carte-server-1.0.1 lib/carte/server/views/cards.builder
carte-server-1.0.0 lib/carte/server/views/cards.builder
carte-server-0.0.28 lib/carte/server/views/cards.builder
carte-server-0.0.27 lib/carte/server/views/cards.builder
carte-server-0.0.26 lib/carte/server/views/cards.builder
carte-server-0.0.25 lib/carte/server/views/cards.builder
carte-server-0.0.24 lib/carte/server/views/cards.builder
carte-server-0.0.23 lib/carte/server/views/cards.builder
carte-server-0.0.22 lib/carte/server/views/cards.builder
carte-server-0.0.21 lib/carte/server/views/cards.builder