File: Path.pm

package info (click to toggle)
libcatalyst-perl 5.7014-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,276 kB
  • ctags: 874
  • sloc: perl: 11,270; makefile: 48
file content (38 lines) | stat: -rw-r--r-- 825 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package TestApp::Controller::Action::Path;

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

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

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');
}

1;