Re: Re: Templating engines

From: Date: Fri, 29 Apr 2005 22:14:52 +0000
Subject: Re: Re: Templating engines
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-214246@lists.php.net to get a copy of this message
Mattias Thorslund wrote: ...
Who says PHP itself is a template engine? I think nobody. What are the "basic template features"?
Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup
However, there is a school of thought regarding templates that advocates template engines (written in, for instance, PHP) which use PHP as their template syntax, so that there is no need to invent new tags or placeholders. You could read the article I linked to before, it has examples. Actually, here's the link again: http://www.massassi.com/php/articles/template_engines/
The point of this article is that PHP is a good template engine ;)

« previous php.general (#214246) next »