Re: template engine...why???
| From: | Robert Cummings | Date: | Wed, 30 Apr 2003 20:01:12 +0000 |
| Subject: | Re: template engine...why??? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145844@lists.php.net to get a copy of this message | ||
Steve Keller wrote:
>
> At 4/30/2003 07:56 PM, Salah Faya wrote:
>
> > I also use a template system is to give the layout designers complete
> freedom
> > regarding the look without the need to teach them PHP.
>
> Not to keep beating this discussion, but I'm at a loss for understanding
> this argument. If your designers are using CSS-compliant designs, even if
> they're using a table or two for layouts, PHP still makes templating easy.
> What's to keep them from doing:
>
> <div id="header"><? heading(); ?></div>
>
> <div id="content">
> <? menu(); ?>
> <? leadArticle(); ?>
> <? oldArticles(); ?>
> </div>
>
> <div id="footer"><? footer(); ?></div>
>
> Is that really so complicated? Your PHP code is in those functions, all the
> designers need to know is what the output looks like. And if your output is
> clean paragraphs and divs, then the designers can worry about the layout
Hmmm that's awfully blocky looking, a real flattening out of the principle
of a template. Now let me see, my designers think that the output from menu()
sucks, or the output from leadArticle() sucks, ... Are you to tell me your
developers are doing the design of the HTML within the included templates
and functions? Gee what a waste of their talents. At some point your solution
ALWAYS breaks down to a coder putting html into functions for the designers
to use. This is somewhat true of templates, but the re-usability of your
method versus the template method is questionable.
Cheers,
Rob.
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'