Re: [Catalyst] How use two wrapper?

2010-06-06 Thread Xiao Yafeng
Thanks! As your help, I've known a right way to do this. On Sun, Jun 6, 2010 at 6:34 PM, Denny <2...@denny.me> wrote: > On Sun, 2010-06-06 at 12:41 +0800, Xiao Yafeng wrote: > > I'm new to Catalyst. I'd like to use one wrapper to some templates, > > the other wrapper to some other templates. > >

Re: [Catalyst] How use two wrapper?

2010-06-06 Thread Denny
On Sun, 2010-06-06 at 12:41 +0800, Xiao Yafeng wrote: > I'm new to Catalyst. I'd like to use one wrapper to some templates, > the other wrapper to some other templates. Hiya, There's a page on the wiki which I think gives you what you want: http://wiki.catalystframework.org/wiki/gettingstarted/ho

Re: [Catalyst] How use two wrapper?

2010-06-06 Thread Ben van Staveren
Either set a stash variable indicating which wrapper you want to use, and modify your wrapper.tt2 as follows: [% IF stash_variable == 'thiswrapper' %] [% WRAPPER thiswrapper.tt2 %] [% content %] [% END %] [% ELSE %] [% WRAPPER thatwrapper.tt2%] [% content %] [% END %] [% END %] or jus

Re: [Catalyst] How use two wrapper?

2010-06-06 Thread Caleb Cushing
On Sun, Jun 6, 2010 at 12:41 AM, Xiao Yafeng wrote: >       I'm new to Catalyst. I'd like to use one wrapper to some templates, > the other wrapper to some other templates. But as > Catalyst;:Manual::Tutorial, use different View's -- Caleb Cushing http://xenoterracide.blogspot.com ___