[Catalyst] Changing path seperator?

Ash Berlin ash_cpan at firemirror.com
Mon Jun 22 17:56:14 GMT 2009


On 22 Jun 2009, at 13:25, Neo [GC] wrote:

> Hi!
>
> Is it possible to change the path seperator or to define an optional  
> new seperator and if yes, how?
>
> Example:
> Instead of
> /foo/bar/something?param=value
> for
> MyApp::Controller::Foo::Bar
> I'd like to use
> /foo.bar.something?param=value
>
> Thanks in advance and regards,
> Tom Weber

Sounds like you want a custom prepare path sub, and if you use it a  
custom uri_for. Check the docs for the sigs: you can just define these  
methods in your MyApp.pm.

-ash



More information about the Catalyst mailing list