File: Boo.pm

package info (click to toggle)
libcatalyst-controller-actionrole-perl 0.17-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 376 kB
  • sloc: perl: 488; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package TestApp::Controller::Boo;

use Moose;

BEGIN { extends 'Catalyst::Controller::ActionRole'; }

__PACKAGE__->config(
    action_args => {
        foo => { boo => 'hello' },
    },
);

sub foo : Local Does('Boo') {
    my ($self, $ctx) = @_;
    my $boo = $ctx->stash->{action_boo};
    $ctx->response->body($boo);
}

1;