[Catalyst] Patch for Catalyst::View::Mason

Jonathan Rockway jon at jrock.us
Fri Mar 7 22:48:39 GMT 2008


* On Fri, Mar 07 2008, Rick Delaney wrote:
> 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.

You can do all of these things in your own app.  Why do you feel the
need to inflict this on other people?  Adding a bunch of weird
configuration options seems wasteful when you can just write a line or
two of code to customize things exactly as you need.

The reason you have a subclass of a View in your application is so you
can do whatever you want.

Regards,
Jonathan Rockway



More information about the Catalyst mailing list