File: ParentChain.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 (25 lines) | stat: -rw-r--r-- 573 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
package TestApp::Controller::Action::Chained::ParentChain;
use warnings;
use strict;

use base qw/ Catalyst::Controller /;

#
#   Chains to the action /action/chained/parentchain in the
#   Action::Chained controller.
#
sub child :Chained('.') :Args(1) { }

# Should be at /chained/rootdef/*/chained_rel/*/*
sub chained_rel :Chained('../one') Args(2) {
}

# Should chain to loose in parent namespace - i.e. at /chained/loose/*/loose/*/*
sub loose : ChainedParent Args(2) {
}

# Should be at /chained/cross/*/up_down/*
sub up_down : Chained('../bar/cross1') Args(1) {
}

1;