Re: [Catalyst] selectively using the wrapper

2009-09-16 Thread Bill Moseley
On Wed, Sep 16, 2009 at 9:11 AM, Ascii King wrote: > Bill Moseley wrote: > >> >> In my mind the wrapper is a view issue, so I set the wrapper in the >> template not in the controller. I have a wrapper that is called for *every* >> page that is used to build the page. >> >> META is compile time,

Re: [Catalyst] selectively using the wrapper

2009-09-16 Thread Ascii King
Bill Moseley wrote: In my mind the wrapper is a view issue, so I set the wrapper in the template not in the controller. I have a wrapper that is called for *every* page that is used to build the page. META is compile time, IIRC, so I use [% page.layout = 'foo' %] then in wrapper.tt

Re: [Catalyst] selectively using the wrapper

2009-09-16 Thread Bill Moseley
On Wed, Sep 16, 2009 at 7:20 AM, Ascii King wrote: > > >> [% >> META custom_wrapper = 'alt_wrapper.tt'; >> META title = 'Alt Layout'; >> -%] >> >> >> >> >> > > I don't know how to set the template.custom_wrapper, though. I ended up > just using a variable in the stash called custom_wrapper and

Re: [Catalyst] selectively using the wrapper

2009-09-16 Thread Denny
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

Re: [Catalyst] selectively using the wrapper

2009-09-16 Thread Ascii King
Someone was nice enough to answer this question for me when I posed it on the #tt channel on irc.perl.org earlier today, so it would be rude of me not to pass on the answer: = wrapper.tt = [% IF template.custom_wrapper; PROCESS $template.custom_wrapper; ELSIF no_wrapper |