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 the template inheritance that I describe in the other letter in
this thread might be even better.
--
Zbyszek
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/