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.
>
>
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
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
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
___
Hi,
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,
I can only define one wrapper like this:
__PACKAGE__->config(
# Change default TT extension
TEMPLATE_EXTE