mods/standard/sets/all/rss.rb in wagn-1.13.0.pre1 vs mods/standard/sets/all/rss.rb in wagn-1.13.0.pre2
- old
+ new
@@ -1,7 +1,14 @@
format :rss do
+
+ attr_accessor :xml
+
+ def initialize card, args
+ super
+ @xml = @parent.xml if @parent
+ end
def show view, args
@xml = Builder::XmlMarkup.new
view ||= :feed
render view, args
@@ -17,11 +24,11 @@
@xml.description render_feed_description
@xml.link render_url
render_feed_item_list
end
end
- rescue Exception=>e
+ rescue =>e
@xml.error "\n\nERROR rendering RSS: #{e.inspect}\n\n #{e.backtrace}"
end
end
view :feed_item_list do |args|
@@ -55,11 +62,11 @@
view :feed_description do |args| '' end
view :comment_box do |args| '' end
view :menu do |args| '' end
- view :open, :titled
- view :content, :core
- view :open_content, :core
- view :closed, :link
+ view :open, { :view=>:titled, :mod=>All::Base::Format }
+ view :content, { :view=>:core, :mod=>All::Base::Format }
+ view :open_content, { :view=>:core, :mod=>All::Base::Format }
+ view :closed, { :view=>:link, :mod=>All::Base::Format }
end