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

Jason Kuri jayk at ion0.com
Mon Dec 1 06:36:13 GMT 2008


On Nov 27, 2008, at 1:18 AM, Andy Wardley wrote:
>
> site/wrapper:
>
>    [% DEFAULT layout = template.layout or 'default';
>       content WRAPPER "layout/$layout";
>    %]
>
> If "layout" isn't defined then I first check the template.layout
> variable.
> This allows a page author to select a layout by writing something
> like this
> at the top of a page template:
>
>    [% META layout='blog' %]

Great tip.  I usually do the nowrap thing - but using a layout
variable like that is great.  I will have to try that on my next site
build.

Thanks!!

Jay



More information about the Catalyst-dev mailing list