Re: [PHP Template] RE: [PHP3] template engine example document
| From: | Andrei Zmievski | Date: | Sat, 25 Mar 2000 17:20:30 +0000 |
| Subject: | Re: [PHP Template] RE: [PHP3] template engine example document | ||
| References: | 1 2 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-470@lists.php.net to get a copy of this message | ||
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. *