Egg::Model::FeedPP - XML::FeedPP for Egg::Model.
configuration.
... MODEL=> [ ..... [ FeedPP=> {} ], ],
example code.
my $param= $view->params; my $feed = $e->model('FeedPP')->feed('http://mydomain.name/index.rdf'); $param->{rss_title}= $feed->title; $param->{rss_link} = $feed->link; my @items; for $item ($feed->get_item) { push @items, { title=> $item->title, link => $item->link, date => $item->pubDate, }; } $param->{rss_items}= \@items;
It is a module to use XML::FeedPP with MODEL.
The XML::FeedPP object will be usually received by the feed method, and you operate the object directly though you do the method of XML::FeedPP with AUTOLOAD in bind.
* Functions other than relaying XML::FeedPP are not provided now.
'FeedPP' is added to the setting of MODEL.
MODEL => [ [ FeedPP => {} ], ],
* There is no set item of the option now.
XML::FeedPP object is returned.
SOURCE is an argument passed to the constructor of XML::FeedPP.
my $feed= $e->model('FeedPP')->feed('http://domain.name/index.rss');
* Please see the document of XML::FeedPP in detail.
XML::FeedPP, Egg::Release,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release::XML::FeedPP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release::XML::FeedPP
CPAN shell
perl -MCPAN -e shell install Egg::Release::XML::FeedPP
For more information on module installation, please visit the detailed CPAN module installation guide.