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


Egg-Release-XML-FeedPP documentation Contained in the Egg-Release-XML-FeedPP distribution.

Index


Code Index:

NAME

Top

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

DESCRIPTION

Top

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

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

EXAMPLE

Top

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

Top

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

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT

Top


Egg-Release-XML-FeedPP documentation Contained in the Egg-Release-XML-FeedPP distribution.

package Egg::Release::XML::FeedPP;
#
# Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt>
#
# $Id: FeedPP.pm 211 2007-11-03 14:41:11Z lushe $
#
use strict;
use warnings;

our $VERSION = '0.02';

1;