NAME

Egg::Release::XML::FeedPP - XML::FeedPP module kit for Egg.

DESCRIPTION

When RSS Feed is treated, XML::FeedPP is very convenient.

MODEL and VIEW to use the XML::FeedPP were enclosed.

EXAMPLE

Mounting Model arrives and the method of XML::FeedPP is called with AUTOLOAD easily.

Therefore, it is recommended to receive the XML::FeedPP object by the feed method, and to operate it directly.

my $feed= $e->model('FeedPP')->feed('http://domain.name/index.rdf');

....

Please see the document of XML::FeedPP in detail.

see Egg::Model::FeedPP.

VIEW

Mounting VIEW is a little tactful from MODEL.

After content_type and charset are set, the content trained to XML::FeedPP is output.

The character-code should be likely to be converted. You will use the Encode plug-in for it.

my $feed= $e->default_view('FeedPP')->feed;
$feed->title('MY BLOG');
$feed->link('http://myblog.domain.name/');
for my $item (@items) {
	$feed->add_item( $item->{url},
	  title       => $e->utf8_conv(\$item->{title}),
	  description => $e->utf8_conv(\$item->{description}),
	  );
}
# The output is left to Egg.

see Egg::View::FeedPP.

SEE ALSO

Egg::Model::FeedPP, Egg::View::FeedPP, XML::FeedPP, Egg::Release,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT

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.