GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::View::Atom::XML(3) User Contributed Perl Documentation Catalyst::View::Atom::XML(3)

Catalyst::View::Atom::XML - XML serialization for Atom objects

    package My::App::View::XML;
    use strict;
    use base qw( Catalyst::View::Atom::XML );
    1;

Catalyst::View::Atom::XML provides automatic serialization of XML::Atom objects for a Catalyst application. Your application needs only set "$c->stash->{xml_atom_object}", then forward to your view, to serialize an XML::Atom object.

For example:

    sub foo {
        my($self, $c) = @_;
        my $entry = XML::Atom::Entry->new;
        $entry->title('Foo');
        $c->stash->{xml_atom_object} = $entry;
    }

    sub end : Private {
        my($self, $c) = @_;
        $c->forward('My::App::View::XML');
    }
2006-01-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.