Re: template engine...why???
| From: | rush | Date: | Thu, 01 May 2003 09:39:04 +0000 |
| Subject: | Re: template engine...why??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145917@lists.php.net to get a copy of this message | ||
"Rasmus Lerdorf" <rasmus@lerdorf.com> wrote in message
news:Pine.LNX.4.44.0304301310500.868-100000@thinkpad.lerdorf.com...
> I think you guys are missing the point I was trying to make. My first
> point was that it is not possible to build a general-purpose templating
> system that won't eventually evolve into PHP.
I have understood your statement. TemplateTamer uses full and native PHP as
"logic" language for it's templates, so there is no separate language used
to control templates. It is just full and plain PHP at your disposall. The
trick is, that templates are not controled by some intermideate language
embeded in the template, but by php code preparing the data tree to be
displayed. So you have a full php strength at your disposal, you are not
working in some brewed up language but in php.
>Then my second point was
> that it is very possible to build very specific templating solutions using
> PHP.
Well, yes, I believe you can, and that many or some people find this method
more natural, or simpler. But for me tools like TT offer me more power, and
simplify coding and improve separation of code and html. I do understand
that things like that are highly subjective, and that it is not necessarily
the same for everyone else.
>As far as I am concerned templates should not have any sort of logic in
>them, including iterators. But this is a religious issue that nobody can
>agree on and I don't expect to see agreement here.
Well, if it is of any comfort, TemplateTamer does not have any sort of logic
embeded in templates, and specially not iterators, so we actually have very
similar opinion on the topic :)
rush
--
http://www.templatetamer.com/