RE: [PHP] template engine...why???
| From: | luis | Date: | Wed, 30 Apr 2003 17:27:36 +0000 |
| Subject: | RE: [PHP] template engine...why??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145826@lists.php.net to get a copy of this message | ||
<table>
{section loop=$foo name=i}
<tr><td>{$foo[i]}</td></tr>
{/section}
</table>
-----Original Message-----
From: Seairth Jacobs [mailto:seairth@seairth.com]
Sent: Wednesday, April 30, 2003 1:15 PM
To: php-general@lists.php.net
Subject: Re: [PHP] template engine...why???
Can you tell me how you handle something like generating an arbitrary
number
of <tr>s in a table while:
1) Not using a runtime templating approach, and
2) Still allowing the <table> and <tr> presentations to be altered (say,
switching to use of <divs>) without giving access to the underlying
logic.
---
Seairth Jacobs
seairth@seairth.com
"Rasmus Lerdorf" <rasmus@lerdorf.com> wrote in message
news:Pine.WNT.4.53.0304300801440.728@DELL...
> > For closing, I can also agree that one can view a php as an
templateing
> > system in it self but I see it as a different kind, or operating on
> > different level, which does not necessary preclude usage or diminish
value
> > of additional template systems that complement it.
>
> The only templating systems I can honestly say are complementary are
the
> ones that pre-generate pages so there is absolutely no run-time hit
from
> the templating system. Anything that parses template files and by
> whatever means does search and replace stuff at runtime is just
inherently
> nasty if you care about performance at all.
>
> -Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php