Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add more data to the yml file and the rss feed

  • Loading branch information...
commit 4ff90196e7aa0099e453c2353c073a253fef5e5c 1 parent 22e1ad4
@szabgab authored
Showing with 13 additions and 0 deletions.
  1. +2 −0  data/events.yml
  2. +11 −0 lib/PEG.pm
View
2  data/events.yml
@@ -69,6 +69,8 @@
days: 2
title: Chemnitzer Linux-Tage
address: Chemnitz, Germany
+ url: http://chemnitzer.linux-tage.de/
+ wiki: events 2011 linuxtage chemnitz
- date: 2011.03.22
days: 3
title: UKUUG
View
11 lib/PEG.pm
@@ -120,6 +120,17 @@ sub _rss {
} else {
$text = "starting on $n->{date} for $n->{days} days";
}
+
+ $text .= "<br />";
+ if ($n->{url}) {
+ $text .= qq{ <a href="$n->{url}">$n->{title}</a><br /> };
+ }
+ if ($n->{wiki}) {
+ $n->{wiki} =~ s/ /_/g;
+ my $wiki = "http://perlfoundation.org/perl5/$n->{wiki}";
+ $text .= qq{ Presence is being organized on the <a href="$wiki">wiki</a><br /> };
+ }
+ $text .= " Location: $n->{address}<br />";
}
$rss->add_item(
Please sign in to comment.
Something went wrong with that request. Please try again.