Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Routes CPAN distribution.

Report information
The Basics
Id: 43713
Status: resolved
Worked: 2 min
Priority: 0/
Queue: CGI-Application-Plugin-Routes

People
Owner: julian.porta [...] gmail.com
Requestors: clscott [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.03
Fixed in: (no value)



Subject: Matched parameters?
I'd like to know which cgi parameters we added by routes ( so I can eliminate them from a self referencing url. ) In a local sub class I have the following: sub routes_params{ my ($self) = shift; if ( @_ ){ $self->{'Application::Plugin::Routes::__routes_params'} = [ @_ ]; } return $self->{'Application::Plugin::Routes::__routes_params'} } and in routes_parse I added $self->route_params( @names ); at line 102
Clayton. I actually like your idea and will implement it in the next release, I guess in a couple of days. Thanks for the feedback. Porta. On Fri Feb 27 17:10:01 2009, CLSCOTT wrote: Show quoted text
> I'd like to know which cgi parameters we added by routes > ( so I can eliminate them from a self referencing url. ) > > In a local sub class I have the following: > > sub routes_params{ > my ($self) = shift; > if ( @_ ){ > $self->{'Application::Plugin::Routes::__routes_params'} = [ @_ ]; > } > return $self->{'Application::Plugin::Routes::__routes_params'} > } > > and in routes_parse I > added $self->route_params( @names ); > at line 102
Submitted v 1.01 with routes_params included. Thanks for the suggestion and the code.