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

From: Date: Wed, 01 Mar 2000 17:59:34 +0000
Subject: Re: [PHP Template] Request for comments - nested sections/looping/padding
References: 1 2 3  Groups: php.template 
Request: Send a blank email to php-template+get-288@lists.php.net to get a copy of this message
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. >

« previous php.template (#288) next »