Re: [PHP3] Re: [PHP Template] Re: [PHP3] PHP Template Engine spec revision 0.52
[email protected] (John Coggeshall) Tue, 21 Mar 2000 14:52:41 -0500 (EST)
| Newsgroups | php.template |
|---|---|
| Organization | Kettering University (formerly GMI E&MI) - Flint MI |
| Message-ID | <[email protected]> |
> The philosophy that I subscribe to is that PHP script should not have a > single line or string that will appear in the output. Everything that > can appear in the output should be in the template. That way, it can be > easily localized and so on. With the example that you gave, you compose > pieces of HTML in your PHP script, in my personaly opinion, that's bad. > Maybe the word 'template' means different things to different people. > You want it to be just a set of placeholders where your PHP script > places the things it composes. No... remember what the point of templates are... to separate the PHP code from the HTML code... yes.. I know I am creating HTML code with PHP code but the point is that I can completely design a layout in pure HTML with placemarkers, repeating blocks for tables of data, etc. completely, without another language and without forcing designers to learn even the most basic PHP Syntax.... a Designer could design an entire site that is just as powerful as any template language could be. It's the developers job to deal with logic blocks -- not a designers > > So, you're saying you don't trust anything new? > No, but will I trust a site I'm putting my name on to a designer that doesn't know anything about programming using a watered down version of a programming language -- that I don't know to boot? No. My clients deserve better. John