Re: [PHP Template] Request for comments - nested sections/looping/padding
[email protected] (Monte Ohrt) Wed, 01 Mar 2000 13:10:27 -0600
| Newsgroups | php.template |
|---|---|
| Organization | ispi |
| Message-ID | <[email protected]> |
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.