On Wed, 2009-09-16 at 10:20 -0400, Ascii King wrote:
> > [%  IF template.custom_wrapper; 
> >             PROCESS $template.custom_wrapper;
> >     ELSIF no_wrapper || template.no_wrapper;
> >             content;
> >     ELSE;
> >             PROCESS 'default_wrapper.tt';
> >     END
> > %]
> 
> I don't know how to set the template.custom_wrapper, though.

Ah, that was a pure TT solution - to set a template.variable you use
'META variable = ...' in the calling template.

> I ended up just using a variable in the stash called custom_wrapper 
> and then deleting the 'template.' from the example above.

Sounds good.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
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