Re: [Templates] How to do a wrapper with optional behavior
[prev]
[thread]
[next]
[Date index for 2005/04/06]
Josh,
> I am trying to use a splash tabbox and CGI::Application to create a
> mode where you can switch behavior based on the tab selected, ...
If you're willing to look at alternate methods, I can tell you how we do that
sort of thing here. (Well, specifically we use OpenThought
(http://www.openthought.net/), but the technique is general enough to work on
its own too.) I just make a page which has the common bits, and inside that,
several different BLOCKs. Each BLOCK represents a different tab. Then I just
put a small IF / ELSIF block at the bottom and PROCESS whichever BLOCK is
appropriate, based on some template var (which I typically name "which").
Then all I need to do is grab the CGI param that tells me which tab we're on
and set the template var (i.e. "which"). Voila.
HTH.
-- Buddy
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] How to do a wrapper with optional behavior
Buddy Burden 16:16 on 06 Apr 2005
|