[Catalyst] Overriding Catalyst::View::TT WRAPPER
David Stevenson
hoagy at ytfc.com
Wed Dec 1 00:47:20 GMT 2010
On 1 Dec 2010, at 00:39, Bill Moseley wrote:
>
> Yes, but I also allow templates to specify their layout. So for an action /foo/bar I might have /foo/bar.tt and in bar.tt:
>
> [% page.layout = 'cms'; # override default layout %]
Yes, that's what I do. The template is deciding the view. IMO that's the right place for it.
It's like setting page titles, which (I assume) most people do the same way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101201/cc04e5ec/attachment.htm
More information about the Catalyst
mailing list