[Catalyst] Patch for Catalyst::View::Mason
Rick Delaney
rick at bort.ca
Fri Mar 7 22:07:19 GMT 2008
On Mar 07 2008, Jonathan Rockway wrote:
> * On Fri, Mar 07 2008, Matthias Zeichmann wrote:
> > C:V:TT behaves exactly the same way [0] and i suspect its not the only
> > view that does
> >
> > my $template = $c->stash->{template}
> > || $c->action . $self->config->{TEMPLATE_EXTENSION};
>
> This is really the only thing that makes sense.
It would make more sense if it was a configuration option of the
template engine itself. Then you wouldn't need the extension when
putting the template in the stash and things like
[% INCLUDE "path/to/my/template.tt2" %]
wouldn't need to specify the ugly extension either.
--
Rick Delaney
rick at bort.ca
More information about the Catalyst
mailing list