Re: [PHP Template] dynamic blocks
[email protected] (Andrei Zmievski)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 17 Feb 2000, Monte Ohrt wrote:
> Here are some ideas. Whatever we go with, it should be consistant:
>
>
> {if: $title != "foo"}
> <b>$title</b>
> {else:}
> <b>none</b>
> {/if:}
>
> {%if $title != "foo"}
> <b>$title</b>
> {%else}
> <b>none</b>
> {%/if}
>
> {:if $title != "foo"}
> <b>$title</b>
> {:else}
> <b>none</b>
> {:/if}
>
> {if $title != "foo"}
> <b>$title</b>
> {else}
> <b>none</b>
> {/if}
>
>
> After first glance at these, I kind of like the one with a
> colon at the end. I'm not sure if the /if and else tags
> need colons, but maybe they should for consistancy.
I would be fine with colon either at the end or at the beginning. Having
no colon at all is possible too, I suppose, but colon might keep it
cleaner. I'll do whatever the majority wants.
-Andrei
* There is no knowledge that is not power. *