sub _parse_Local_attr {
my ( $self, $c, $name, $value ) = @_;
# _parse_attr will call _parse_Path_attr for us
- return Path => $name;
+ $name = join( '/', $self->path_prefix($c), $name);
+ $name =~ s!^/!!;
+ return (
+ 'Chained' => '/',
+ 'PathPart' => $name
+ );
}
sub _parse_Relative_attr { shift->_parse_Local_attr(@_); }
my ( $self, $c, $name, $value ) = @_;
$value = '' if !defined $value;
if ( $value =~ m!^/! ) {
- return ( 'Path', $value );
}
elsif ( length $value ) {
- return ( 'Path', join( '/', $self->path_prefix($c), $value ) );
+ $value = join( '/', $self->path_prefix($c), $value )
}
else {
- return ( 'Path', $self->path_prefix($c) );
+ $value = $self->path_prefix($c)
}
+ $value =~ s!^/!!;
+ return (
+ 'Chained' => '/',
+ 'PathPart' => $value
+ );
}
sub _parse_Chained_attr {
=head2 Regexp
-Status: Deprecated. Use Chained methods or other techniques.
+B<Status: Deprecated.> Use Chained methods or other techniques.
If you really depend on this, install the standalone
L<Catalyst::DispatchType::Regex> distribution.
=head2 LocalRegexp
-Status: Deprecated. Use Chained methods or other techniques.
+B<Status: Deprecated.> Use Chained methods or other techniques.
If you really depend on this, install the standalone
L<Catalyst::DispatchType::Regex> distribution.