Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (35 sloc) 1.06 KB
xml.instruct! :xml, :version => "1.0"
xml.feed :xmlns => "http://www.w3.org/2005/Atom" do
xml.id Haze.opt(:domain)
xml.title Haze.opt(:title)
xml.updated @entries.first.date.xmlschema
xml.link :href => Haze.opt(:domain)
xml.link :rel => "self", :href => File.join(Haze.opt(:domain), 'feed')
xml.author do
xml.name Haze.opt(:author)
xml.email Haze.opt(:email)
xml.uri Haze.opt(:domain)
end
@entries.each do |entry|
xml.entry do
xml.id entry.url
xml.title entry.title, :type => "html"
xml.updated entry.date.xmlschema
xml.author do
xml.name Haze.opt(:author)
xml.email Haze.opt(:email)
xml.uri Haze.opt(:domain)
end
xml.link :rel => "alternate", :href => entry.url
xml.summary :type => "xhtml" do
xml.div :xmlns => "http://www.w3.org/1999/xhtml" do
xml << entry.body
end
end
entry.tags.each do |tag|
xml.category :term => tag,
:scheme => File.join(Haze.opt(:domain), "archive?tag=#{tag}")
end
end
end
end