Permalink
Browse files

make the /rss/news the location of the news feed so we can have other…

… feeds as well
  • Loading branch information...
1 parent e79eac3 commit 16f27185a35a80597fad2b0fbe6b54f69ec8ba47 @szabgab committed Mar 6, 2011
Showing with 11 additions and 2 deletions.
  1. +9 −0 lib/PEG.pm
  2. +1 −1 t/002_index_route.t
  3. +1 −1 views/layouts/main.tt
View
@@ -59,7 +59,16 @@ get qr{^ / ([\w/-]+) $ }x => sub {
template $page => _content->{$page};
};
+# for historical reasons:
get '/rss' => sub {
+ return _rss('news');
+};
+
+get '/rss/news' => sub {
+ return _rss('news');
+};
+
+sub _rss {
my $rss = XML::RSS->new( version => '1.0' );
my $year = 1900 + (localtime)[5];
my $url = 'http://perl-ecosystem.org';
View
@@ -4,7 +4,7 @@ use warnings;
use Test::NoWarnings;
my @pages = qw(
- / /rss /about /what /who /why
+ / /rss /rss/news /about /what /who /why
/events /earlier_events /news
/members /membership /sponsors
/benefits /contact /about);
View
@@ -8,7 +8,7 @@
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="Perl, training, consulting, business, community, promotion, advocacy" />
<meta name="description" content="<% template.description %>" />
- <link href="/rss" rel="alternate" type="application/rss+xml" title ="Perl Ecosystem Group" />
+ <link href="/rss/news" rel="alternate" type="application/rss+xml" title ="Perl Ecosystem Group News" />
</head>
<body>

0 comments on commit 16f2718

Please sign in to comment.