Re: [PHP Template] Request for comments - nested sections/looping/padding

[email protected] (Monte Ohrt) Wed, 01 Mar 2000 11:59:34 -0600
Newsgroups php.template
Organization ispi
Message-ID <[email protected]>
I like the second one, and make pad="" default if the pad
attribute is not given.

Andrei Zmievski wrote:
> 
> 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.
>