Changeset 293


Ignore:
Timestamp:
May 18, 2006, 4:35:06 PM (14 years ago)
Author:
nick
Message:

Move towards splitting up data fetching from rendering, for RSS only for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Feed/RSS.pm

    r292 r293  
    5151}
    5252
     53=item B<recent_changes>
     54
     55Build an RSS Feed of the recent changes to the Wiki::Toolkit instance,
     56using any supplied parameters to narrow the results.
     57
     58=cut
    5359sub recent_changes
    5460{
     
    8389
    8490  my @changes = $wiki->list_recent_changes(%criteria);
    85 
    8691  my $rss_timestamp = $self->rss_timestamp(%args);
     92
     93  return $self->generate_node_list_feed($rss_timestamp, @changes);
     94}
     95
     96=item <generate_node_list_feed>
     97
     98Generate and return an RSS feed for a list of nodes
     99
     100=cut
     101sub generate_node_list_feed {
     102  my ($self,$rss_timestamp,@nodes) = @_;
    87103
    88104  #"http://purl.org/rss/1.0/modules/wiki/"
     
    138154  my (@urls, @items);
    139155
    140   foreach my $change (@changes)
     156  foreach my $change (@nodes)
    141157  {
    142158    my $node_name = $change->{name};
Note: See TracChangeset for help on using the changeset viewer.