1 package Catalyst::Action::Serialize::YAML;
4 use namespace::autoclean;
6 extends 'Catalyst::Action';
11 my ( $controller, $c ) = @_;
14 $controller->{'serialize'} ?
15 $controller->{'serialize'}->{'stash_key'} :
16 $controller->{'stash_key'}
18 my $output = $self->serialize($c->stash->{$stash_key});
19 $c->response->output( $output );
29 __PACKAGE__->meta->make_immutable;