[Catalyst] How to trail the .html files in my control

Mark Blythe perl at markblythe.com
Fri Feb 17 18:33:53 CET 2006


>
> So can you just remove the ".html" from the Template?  Either that, or
> define your methods as:
>
> sub list : Path('list.html') {
>     ....
> }
>

Or if you want to be able to access it with or without the .html, you could
do:

sub list : LocalRegex('^list(?:\.html)?$') { }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060217/5f416585/attachment.htm


More information about the Catalyst mailing list