Re: [PHP Template] Recursive hide behavior

[email protected] (Sanford Redlich) Fri, 03 Mar 2000 11:55:13 -0800
Newsgroups php.template
Message-ID <[email protected]>
I like this proposal, especially with the altsection concept.

My $.002,


Sanford

At 10:30 AM 3/3/00 -0600, Andrei Zmievski wrote:
>On Fri, 03 Mar 2000, Monte Ohrt wrote:
>> We already have an ambiguity problem. What if you want to hide when all
>> variables are empty, or any section is empty?
>
>Any section is hidden, you mean.
>
>> We could split this up into two separate attributes like so:
>> 
>> hideonvars=none
>> hideonvars=all
>> hideonvars=any
>> 
>> hideonsections=none
>> hideonsections=all
>> hideonsections=any
>> 
>> 
>> Are these attribute names ok? Anyways, this idea keeps the sytax simple
>> and consistant.
>> 
>> The default might be (the most commonly wanted behavior):
>> 
>> hideonvars=any
>> hideonsections=all
>
>Splitting into two attributes (while a little more info now) makes it
>more intuitive and flexible. And with good defaults, like proposed
>above, you wouldn't even need to use these most of the time.
>
>-Andrei
>* Life may be expensive, but it includes an annual free trip around the
sun. *
>
>-- 
>PHP Template Engine Mailing List
>Current engine specification can be found at:
>http://va.php.net/~andrei/tpl-engine-spec.txt
>To unsubscribe, e-mail: [email protected]
>






..........................................................................
Sanford Redlich					CNET: The Computer Network
Sr. Engineer			                            http://www.cnet.com
Commerce platform                                           (415) 364-8380

CNET.com 
The source for computers and technology.