Re: [PHP Template] Request for comments - nested sections/looping/padding
| From: | Andrei Zmievski | Date: | Wed, 01 Mar 2000 16:47:12 +0000 |
| Subject: | Re: [PHP Template] Request for comments - nested sections/looping/padding | ||
| References: | 1 2 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-286@lists.php.net to get a copy of this message | ||
On Wed, 01 Mar 2000, Monte Ohrt wrote:
> Something to consider, it might be confusing to have attributes and
> values the same name,
> for example:
>
> {{ section default="none" pad="default" }}
There are at least two ways to solve this (if it's indeed a problem):
1. Use something else instead of 'default' as value for 'pad' attribute
when you want to pad with default value.
2. Allow specification of padding value directly, e.g.:
pad="---"
pad=100
pad=""
I don't know which one would be more useful.
-Andrei
* George Orwell was an optimist. *