Re: [PHP Template] dynamic blocks

[email protected] (Sanford Redlich)
Newsgroups php.template
Message-ID <[email protected]>
My 1 cent, I think the colons make it more readable...


S.

At 06:05 PM 2/16/2000 -0600, you wrote:
>Andrei Zmievski wrote:
>> 
>> On Wed, 16 Feb 2000, Monte Ohrt wrote:
>> > This works too, its a new tag for the designer to
>> > learn, but usable. again, maybe name attributes like so:
>> >
>> > {section: name=link}
>> >    <a href="{link}"><font face="{fontface}" size="{fontsize}"
>> >    color="{fontcolor}">{linktext}</font></a>
>> > {/section: name=link}
>> >
>> > {if: {title} != "foo"}
>> >       <b>{title}</b>
>> > {else:}
>> >       <b>none</b>
>> > {/if}
>> 
>> I don't see why you'd need to put {..} around vars in {if: } construct.
>> 
>> -Andrei
>
>
>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}
>
>
>or the other idea with html markup:
>
><if: $title != "foo">
>    <b>$title</b>
><else:>
>    <b>none</b>
></if>
>
>
>I'm not sure if the colons are needed or not.
>
>Monte
>
>
-------
Sanford Redlich
[email protected]
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.