From b50e4a5f40bc64fa1893d249d83c05ecd217de1d Mon Sep 17 00:00:00 2001 From: mms Date: Mon, 6 Jan 2025 22:17:43 +0100 Subject: feat(new): rss + batch --- new/splash/pages/index.xml.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 new/splash/pages/index.xml.rb (limited to 'new/splash/pages/index.xml.rb') diff --git a/new/splash/pages/index.xml.rb b/new/splash/pages/index.xml.rb new file mode 100644 index 00000000..309cb005 --- /dev/null +++ b/new/splash/pages/index.xml.rb @@ -0,0 +1,29 @@ +module Crys + module Splash + module Page + class IndexRss + include CommonFunctions + def initialize(processor:) + @main_rss = fetch_rss(name: :main) + @processor = processor + end + + def content + main_rss + end + + def filename + "index.xml" + + end + + private + + attr_reader :main_rss + + end + end + end +end + +@rss = Crys::Splash::Page::IndexRss.new(processor: self) -- cgit v1.2.3