[Radiant] News headline (RSS summary) behavior

Ale ale at incal.net
Mon Aug 7 06:11:38 CDT 2006


Hello,
I just saw the RSS behavior made by Andrew Hodgkinson: I actually did
something very similar a few days ago, maybe you find it useful. It uses
the FeedParser library (http://home.gna.org/ruby-feedparser/) that seems
to be able to parse more feeds than Simple-RSS.
It introduces a few item-specific tags, so that you can customize the
resulting output, like in this example:

 <r:feed:items url="http://some.feed/rss" limit="5">
  <dt><r:feed:link /> - by <r:feed:creator />, <r:feed:date /></dt>
  <dd><r:feed:content /></dd>
 </r:feed>

I'm quite new to Ruby programming so maybe code quality and design
choices are really bad. But at least it's working (for me)...

You can find it here:


http://dev.incal.net/svn/radiant/rss_behavior/


I'll be glad to receive any suggestions or comments.


--
ale



More information about the Radiant mailing list