[Catalyst-dev] Reasonable change to C::V::TT?

Jason Gottshall jgottshall at capwiz.com
Mon Dec 1 19:23:35 GMT 2008


Ashley wrote:
> Catalyst::View::TT, line 236-ish
> 
>     if ( $vars->{wrapper} ) {
>         $self->template->service->{WRAPPER} = [ $vars->{wrapper} ];
>     }
>     elsif ( exists $vars->{wrapper} ) # allow undef to clear wrapper
>     {
>         $self->template->service->{WRAPPER} = [];
>     }

I would suggest that you allow $vars->{wrapper} to be an arrayref 
itself, so one could actually set it to a stack of nested wrappers.

-- 
Jason Gottshall
jgottshall at capwiz.com




More information about the Catalyst-dev mailing list