Sha256: 4c33300d3a7f14c740feb9b36334fd1de981421879dbf306f2c6a0f3fd5e2b4d

Contents?: true

Size: 1.07 KB

Versions: 7

Compression:

Stored size: 1.07 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title><![CDATA[<%= @page.title %>]]></title>
    <link><%= "#{@page.url}" %></link>
    <atom:link href="<%= "#{request.base_url}#{request.path}" %>" rel="self"/>
    <description><![CDATA[<%= @page.description %>]]></description>
    <lastBuildDate><%= Time.now.rfc822 %></lastBuildDate>
    <% items.each do |item| %>
    <item>
      <title><![CDATA[<%= item.title %>]]></title>
      <link><%= item.link %></link>
      <% if item.time %>
        <pubDate><%= item.time.rfc822 %></pubDate>
      <% end %>
      <description><![CDATA[<%= item.description %>]]></description>
      <content:encoded><![CDATA[<%= item.description %>]]></content:encoded>
      <guid isPermaLink="true"><%= item.link %></guid>
      <% if item.image_url %>
        <enclosure url=<%= item.image_url.encode(xml: :attr) %> length="0" type="<%= item.image_mime_type %>"/>
      <% end %>
    </item>
    <% end %>
  </channel>
</rss>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
weneedfeed-0.14.0 templates/show_feed.xml.erb
weneedfeed-0.13.0 templates/show_feed.xml.erb
weneedfeed-0.12.0 templates/show_feed.xml.erb
weneedfeed-0.11.0 templates/show_feed.xml.erb
weneedfeed-0.10.0 templates/show_feed.xml.erb
weneedfeed-0.9.2 templates/show_feed.xml.erb
weneedfeed-0.9.1 templates/show_feed.xml.erb