Sha256: 3243e6e82b6bd0b1d4f6a46051498a92d2d5298e2e7539ae069e632b06a8b9fe

Contents?: true

Size: 1.45 KB

Versions: 4

Compression:

Stored size: 1.45 KB

Contents

---
template: ~
--- pipeline:erb
<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html"><%= h(context.node['title']) %></title>
  <subtitle type="html"><%= h(context.node['description']) %></subtitle>
  <author>
    <name><%= h(context.node['author']) %></name>
    <uri><%= h(context.node['author_url']) %></uri>
  </author>

  <link href="<%= context.node.feed_link %>" rel="alternate" />
  <generator uri="http://webgen.rubyforge.org/documentation/sourcehandler/feed.html" version="<%= Webgen::VERSION %>">
    webgen - Webgen::SourceHandler::Feed
  </generator>
  <updated><%= Time.now.xmlschema %></updated>
  <id><%= context.node.feed_link %></id>

  <% context.node.feed_entries.each do |entry| %>
  <entry>
    <title type="html"><%= h(entry['title']) %></title>
    <% if entry['author'] %>
    <author>
      <name><%= h(entry['author']) %></name>
      <uri><%= h(entry['author_url']) %></uri>
    </author>
    <% end %>
    <link href="<%= Webgen::Node.url(File.join(context.node['site_url'], entry.path), false) %>" rel="alternate" />
    <id><%= Webgen::Node.url(File.join(context.node['site_url'], entry.path), false) %></id>
    <updated><%= entry['modified_at'].xmlschema %></updated>
    <% if entry['created_at'].kind_of?(Time) %>
    <published><%= entry['created_at'].xmlschema %></published>
    <% end %>
    <content type="html"><%= h(context.node.entry_content(entry)) %></content>
  </entry>
  <% end %>
</feed>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.9.20090620 data/webgen/passive_sources/templates/atom_feed.template
gettalong-webgen-0.5.9.20090626 data/webgen/passive_sources/templates/atom_feed.template
webgen-0.5.10 data/webgen/passive_sources/templates/atom_feed.template
webgen-0.5.9 data/webgen/passive_sources/templates/atom_feed.template