Create Your Own Templates - Template Reference

Create your own templates (use site, feed, item, etc.)

Site

Example: Planet Title

<%= site.title %>

Example: List all subscriptions

<% site.feeds.each do |feed| %>
  <%= feed.url %>  or  <%= feed.link %>
  <%= feed.title %>  or  <%= feed.name %>
  <%= feed.title2 %>
  <%= feed.feed_url %>  or  <%= feed.feed %>
<% end %>

Feed

Example: Lastest feed items

<% items = site.items.latest.limit(24)
     ItemCursor.new( items ).each do |item,new_date,new_feed| %>

  <% if new_date %>
    <%= item.published %>
  <% end %>

  <% if new_feed %>
    <%= item.feed.url %>  or  <%= item.feed.link %>
    <%= item.feed.title %>  or  <%= item.feed.name %>
    <%= item.feed.title2 %>
  <% end %>

  <% if item.title %>
    <%= item.title %>
  <% end %>

  <% item.content %>
  <% item.url %>  or  <% item.link %>
  <% item.published %>

<% end %>

Questions? Comments?

Questions? Comments? Send them along to the Planet Feed Reader - Pluto and Friends Forum/Mailing List. Thanks!

Edit Me! This website is a public GitHub repo. Please help by forking the project and adding to it.