Re: [PHP Template] dynamic blocks

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
On Wed, 16 Feb 2000, Monte Ohrt wrote:
> It would probably work without the braces, but then you have two
> separate formats of your variables in the template. We have a better
> consistancy in that regard with this format:
> 
> {if: $title != "foo"}
>     <b>$title</b>
> {else:}
>     <b>none</b>
> {/if}

Hmm, I think it's nice to have everything template related inside {{ and
}}. Having just $title in the HTML a little confusing.

> I'm not sure if the colons are needed or not.

They nicely delimit the template commands, I think. What does everyone
else think?

-Andrei
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.