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

Matthias Zeichmann matthias.zeichmann at gmail.com
Fri Mar 7 07:01:32 GMT 2008


On Thu, Mar 6, 2008 at 11:11 PM, David Jack Wange Olrik <david at olrik.dk> wrote:
>  Here is a small patch for Catalyst::View::Mason.
>
>  When setting $c->stash->{template}, template_extension was not added
>  to the component path. In my opinion this should always be added, so
>  one can easily change the view without having to provide extra logic
>  that sets the template extension according to the current view.

C:V:TT behaves exactly the same way [0] and i suspect its not the only
view that does

cheers m

[0] http://search.cpan.org/src/MRAMBERG/Catalyst-View-TT-0.26/lib/Catalyst/View/TT.pm
-------->8--------------------------
sub process {
    my ( $self, $c ) = @_;

    my $template = $c->stash->{template}
      ||  $c->action . $self->config->{TEMPLATE_EXTENSION};
-------->8--------------------------
-- 
siggen.pl: Segmentation Fault



More information about the Catalyst mailing list