| Catalyst-View-REST-XML documentation | Contained in the Catalyst-View-REST-XML distribution. |
Catalyst::View::REST::XML - (DEPRECATED) XML View Class
# lib/MyApp/View/REST.pm
package MyApp::View::REST;
use base 'Catalyst::View::REST::XML';
1;
$c->forward('MyApp::View::REST');
This module has been deprecated in favor of Catalyst::Action::REST.
This is the XML::Simple view class.
Serializes $c->stash to $c->response->output.
Sebastian Riedel, sri@cpan.org
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| Catalyst-View-REST-XML documentation | Contained in the Catalyst-View-REST-XML distribution. |
package Catalyst::View::REST::XML; use strict; use base 'Catalyst::View'; use XML::Simple; our $VERSION = '0.02';
sub process { my ( $self, $c ) = @_; $c->response->headers->content_type('text/xml'); $c->response->output( XMLout $c->stash, RootName => 'response' ); return 1; }
1;