Re: [PHP Template] Request for comments - nested sections/looping/padding
[email protected] (Andrei Zmievski) Wed, 1 Mar 2000 10:47:12 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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. *