RE: [PHP3] template engine example document
[email protected] ("Peter Kocks") Sat, 25 Mar 2000 09:25:27 -0800
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
> 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.
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 *}
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?
--pk