—# $Id: /local/Mango/trunk/lib/Mango/Catalyst/View/Atom.pm 200 2007-05-17T23:25:51.613872Z claco $
package
Mango::Catalyst::View::Atom;
use
strict;
use
warnings;
BEGIN {
};
sub
process {
my
(
$self
,
$c
) =
@_
;
$self
->NEXT::process(
$c
,
'Atom'
);
$c
->response->content_type(
'application/atom+xml; charset=utf-8'
);
return
1;
};
1;
__END__
=head1 NAME
Mango::Catalyst::View::Atom - View class for Atom feeds
=head1 SYNOPSIS
$c->view('Atom');
=head1 DESCRIPTION
Mango::Catalyst::View::Atom renders content using XML::Feed and
serves it with the following content type:
application/atom+xml; charset=utf-8
=head1 METHODS
=head2 process
Creates an XML::Feed of the specific type, writes it to the response body,
and changes the content type. There is usually no reason to call this method
directly. Forward to this view instead:
$c->forward($c->view('Atom'));
=head1 SEE ALSO
L<Mango::Catalyst::View::Feed>
=head1 AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com