Re: [PHP3] Re: [PHP Template] Re: [PHP3] PHP Template Engine spec revision 0.52
[email protected] (Andi Gutmans) Tue, 21 Mar 2000 23:03:36 +0200 (IST)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
Andrei, I think the bottom line is the "no way" response you got at the PDM (not only from Zeev) when mentioning having control structures in your template engine. In the beginning you will just have eq & ne support then slowly people will want more and you'll add support for more complex expressions and loops; in the end you'll end up with another scripting language with the same functionality as PHP but different. It might be a better language but do you really want to go this way? You are in fact starting a new language and PHP scripts floating around in the community will have some written in the original language and some in your template language. This is not a path we want to take. By the way, if the content editors are so dumb I still don't understand how: <IF blah eq "foo" > .... </IF> makes it so much easier for them to learn than: <? if (blah == "foo"): ?> ... <? endif; ?> I understand the need for templates such as variable substitution (the simple templates) and I have helped you with all your scanner/parser questions you have had, but I think you should really listen to what we're saying. You're rewriting a new language! And it actually even happens to be the cold fusion path of a language. You're free to write a new web scripting language if you want, but I wouldn't mix it in with PHP. Andi