[Catalyst] Chained, slashes, and escaping
Matt Lawrence
matt.lawrence at ymogen.net
Tue Mar 6 10:00:59 GMT 2007
Jim Spath wrote:
> I'm implementing tagging under Catalyst and want to be as
> unrestrictive as possible on the tag text. As such, I allow slashes
> in the tag text.
>
> To view information on a given tag, you hit the following path:
>
> /tag/URI_ESCAPED_TAG
>
> Which uses the following action in the Tag controller:
>
> sub view : PathPart('tag') Chained('/') Args {
> my ($self, $c, $tag) = @_;
>
How about:
my ($self, $c, @tag_parts) = @_;
my $tag = join('/', @tag_parts);
Matt
More information about the Catalyst
mailing list