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.
_______________________________________________ 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/
