[ciapug] Templating System

Tony Bibbs tony at tonybibbs.com
Fri Jun 24 08:25:33 CDT 2005


This best sums up why PHP isn't such a good template engine:

http://www.akbkhome.com/blog.php/View/80/PHP+as+a+template+engine%2C+or+recipe+for+disaster%3F.html

In short, you have to save developers from themeselves sometimes.

--Tony

Dave J. Hala Jr. wrote:
> I was thinking about what Tim said the other day regarding "templating
> systems".  I think the main point was: how is inserting a <? echo
> $content ?> tag into an html document  really any differant than if you
> just inserted some if/then logic etc. 
> 
> I agree with Tim, its more or less the same thing. For me, the problem
> that I was trying to solve two-fold:
> 
> 1. Seperate the dynamically generated content from the static content,
> so that an end user (or graphic designer) could edit the html without
> mucking around in the php code.
> 2. Make it user to make changes to the CSS include files, thereby making
> it simple to effect system wide cosmetic changes in the both the html
> and the dynamically generated content.
> 
> Tim did you have something else in mind?
> 
> :) Dave
> 
> 
> 
> 


More information about the ciapug mailing list