Re: [PHP Template] Recursive hide behavior
| From: | Sanford Redlich | Date: | Fri, 03 Mar 2000 19:55:13 +0000 |
| Subject: | Re: [PHP Template] Recursive hide behavior | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-303@lists.php.net to get a copy of this message | ||
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: php-template-unsubscribe@lists.php.net
>
..........................................................................
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.