[Catalyst] Overriding Catalyst::View::TT WRAPPER
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...
More information about the Catalyst