Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added start of RSS feed as output

  • Loading branch information...
commit d2c2ee0a1398cb47d6c8a530eb5fa531b80a0824 1 parent 242c2aa
William Denton wdenton authored
Showing with 17 additions and 2 deletions.
  1. +17 −2 my-librarians.rb
19 my-librarians.rb
View
@@ -67,8 +67,23 @@
get "/:type/*" do
type = params[:type] # Either subject or liaison
- programs = params[:splat].downcase.split(",") # splat catches the wildcard
- puts programs
+ # programs = params[:splat].downcase.split(",") # splat catches the wildcard
+ # puts programs
+
+ rss = RSS::Maker.make("atom") do |maker|
+ maker.channel.author = "York University Libraries"
+ maker.channel.updated = Time.now.to_s
+ maker.channel.about = "http://www.library.yorku.ca/"
+ maker.channel.title = "My Librarian (York University Libraries)"
+
+ maker.items.new_item do |item|
+ item.link = "Foo"
+ item.title = "Title"
+ item.updated = Time.now.to_s
+ end
+ end
+
+ rss.to_s
end
Please sign in to comment.
Something went wrong with that request. Please try again.