On Mon, Jun 18, 2007 at 02:42:13PM +0000, Zbigniew Lukasiak wrote: > On 6/18/07, Bill Moseley <[EMAIL PROTECTED]> wrote: > ... > >Do you mean instead of $c->action->reverse like C::V::TT does now? > >That is, so you always have to specify the template name? > > What I see in my copy of C::V::TT is: > > sub process { > my ( $self, $c ) = @_; > > my $template = $c->stash->{template} > || $c->action . $self->config->{TEMPLATE_EXTENSION}; > > What I would propose is something like: > > my $template = $c->action->namespace . '/'; > $template .= $c->stash->{template} || $c->action->name; > $template .= self->config->{TEMPLATE_EXTENSION};
But we need to be able to override the entire template path. That's why I use template for the full path and template_action for the path relative to the namespace. -- Bill Moseley [EMAIL PROTECTED] _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/