Re: [PHP Template] Request for comments - nested sections/looping/padding
| From: | Monte Ohrt | Date: | Wed, 01 Mar 2000 19:10:27 +0000 |
| Subject: | Re: [PHP Template] Request for comments - nested sections/looping/padding | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-292@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
>
> On Wed, 01 Mar 2000, Monte Ohrt wrote:
> > > > I like the second one, and make pad="" default if the pad
> > > > attribute is not given.
> > >
> > > What if you want to pad with the last value of the variable?
> > >
> >
> > pad=#LAST
>
> So, you're saying #LAST would be an internal variable. In that case, let
> me ask you, what does it evaluate to outside the pad= attribute? What if
> you do:
>
> {{ if #LAST }}
>
> Makes no sense.
Of course it doesn't. That's like saying {{ if #EVEN }} outside
of a section.