Skip to content

Commit

Permalink
moving rss feed to feedburner
Browse files Browse the repository at this point in the history
  • Loading branch information
kascote committed Feb 3, 2012
1 parent fc7c52a commit befb12b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app.rb
Expand Up @@ -99,6 +99,13 @@ def get_news(start, title=nil)
erb :rss, :layout => false, :locals => {:news => news, :count => count} erb :rss, :layout => false, :locals => {:news => news, :count => count}
end end


get '/feed' do
content_type 'text/xml', :charset => 'utf-8'
news,count = get_latest_news

erb :rss, :layout => false, :locals => {:news => news, :count => count}
end

get '/acerca' do get '/acerca' do
erb :acerca, :locals => {:title => 'acerca'} erb :acerca, :locals => {:title => 'acerca'}
end end
Expand Down

0 comments on commit befb12b

Please sign in to comment.