Re: [PHP Template] RE: [PHP3] template engine example document

[email protected] (Andrei Zmievski) Sat, 25 Mar 2000 11:20:30 -0600
Newsgroups php.template
Message-ID <[email protected]>
Hi, Peter.

On Sat, 25 Mar 2000, Peter Kocks wrote:
> > have table rows with alternating colors, the other may not. With the
> > system we built, it's achievable. How do you handle it?
> >
> 
> with php.
> 
> That's perhaps a bit too snide a remark, especially regarding all the
> hard work that Andrei has done with the template stuff.  Yet, it does
> strike me that php was built for the purpose of making a HTML
> templates.  php is a very powerful template engine for HTML.

I didn't quite understand the above paragraph, because the remark you
quouted was mine.

> That said, and having reviewed the template examples, I do see the
> merit in the {section} concept.  It does seem easier than a
> traditional for loop.  The problem is with all the other stuff, like
> another way of doing "if" statements and another way to do comments.
> Making now 4 ways of doing comments.
> 
> /* comment */
> <!-- comment >
> // comment
> {* comment *}

Well, HTML comments won't work because they will show up in the output.
PHP comments have totally different delimiters, making it inconsistent.

> Isn't there a way to get the Andrei's section concept into the php
> core, so that we could stick with one form of syntax?

I really doubt that's going to be possible.

-Andrei
* We reason deeply, when we forcibly feel. *