File: Path.pm

package info (click to toggle)
libcatalyst-perl 5.90132-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,016 kB
  • sloc: perl: 11,061; makefile: 7
file content (44 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package TestApp::Controller::Action::Path;

use strict;
use base 'TestApp::Controller::Action';

__PACKAGE__->config(
    actions => {
      'one' => { 'Path' => [ 'a path with spaces' ] },
      'two' => { 'Path' => "åäö" },
      'six' => { 'Local' => undef },
    },
);

sub one : Action Path("this_will_be_overriden") {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Request');
}

sub two : Action {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Request');
}

sub three :Path {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Request');
}

sub four : Path( 'spaces_near_parens_singleq' ) {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Request');
}

sub five : Path( "spaces_near_parens_doubleq" ) {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Request');
}

sub six {
    my ( $self, $c ) = @_;
    $c->forward('TestApp::View::Dump::Request');
}

1;