Sha256: 9fff203baf9bfc33927f86814969af490f0b9b36db53d34e797118a840d320cd

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 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 %>" length="0" type="<%= item.image_mime_type %>"/>
      <% end %>
    </item>
    <% end %>
  </channel>
</rss>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
weneedfeed-0.9.0 templates/show_feed.xml.erb