# $Id: /local/CPAN/Mango/lib/Mango/Catalyst/View/Atom.pm 1578 2008-05-10T01:30:21.225794Z claco $ package Mango::Catalyst::View::Atom; use strict; use warnings; BEGIN { use base qw/Mango::Catalyst::View::Feed/; } 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 =head1 AUTHOR Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/