[Catalyst] selectively using the wrapper

Denny 2009 at denny.me
Wed Sep 16 14:33:48 GMT 2009


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090916/3abd3625/attachment.pgp


More information about the Catalyst mailing list