On Thu, Mar 6, 2008 at 11:11 PM, David Jack Wange Olrik <[EMAIL PROTECTED]> 
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

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to