[Catalyst] How to trail the .html files in my control
Chisel Wright
chisel at herlpacker.co.uk
Fri Feb 17 18:26:24 CET 2006
On Fri, Feb 17, 2006 at 10:44:48PM +0530, Vidya Sagar wrote:
> let me explain in detailed
>
> here is one of my template file i have written like this
>
> <table cellpadding="0" cellspacing="0" border="0" width="100%"
> height="30">
>
> <a href="[%c.request.uri_base%]/testimonials/list.html"
> class="sm2">Testimonials</a> |
> <a href="[%c.request.uri_base%]/page/terms_of_use.html" class="sm2">Terms
> & Conditions</a> |
> <a href="[%c.request.uri_base%]/page/privacy.html" class="sm2">Privacy
> Policy</a>
> </td></tr>
> </table>
>
> above frist link testimonial is my class and list is my method
>
> if i am giving [%c.request.uri_base%]/testimonials/list it is wroking
> but if i am giving [%c.request.uri_base%]/testimonials/list.html it's
> not wroking
So something *like*:
sub path_magic : Regexp('^testimonials/(.*).html$') {
my ($self, $c) = @_;
$c->stash->{template} = $c->req->snippets->[0];
}
maybe?
--
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/
This is not an automated signature. I type this in to the bottom of every
message.
More information about the Catalyst
mailing list