aboutsummaryrefslogtreecommitdiff
path: root/atom.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-05-25 16:13:22 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-05-25 16:13:22 +0200
commitb0eef2d3c6f67a1dfe052a287f5a106beb6a5bb6 (patch)
tree870b76f7350b2b574c587a60fa84e30d489aa0db /atom.rb
parenta06f7e091afca7e7140d4c416e8cc3feaa9dca2b (diff)
possible content for atom feed?
Diffstat (limited to 'atom.rb')
-rwxr-xr-xatom.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/atom.rb b/atom.rb
index ffdb74f..b648998 100755
--- a/atom.rb
+++ b/atom.rb
@@ -47,6 +47,7 @@ log = VCS.history
log.reverse_each {|l|
feed.entries << Atom::Entry.new do |e|
e.title = l.comment
+# e.content = Atom::Content::Xhtml.new("<p><a href=\"#{SITEURL}history.cgi?revision=#{l.rev}\">permalink</a>, <a href='#{SITEURL}' >current version</a></p>")
e.links << Atom::Link.new(:href => "#{SITEURL}history.cgi?revision=#{l.rev}")
e.id = "urn:#{poll.class}:#{poll.name}:rev=#{l.rev}"
e.updated = l.timestamp