Re: template engine...why???
| From: | Seairth Jacobs | Date: | Wed, 30 Apr 2003 16:14:47 +0000 |
| Subject: | Re: template engine...why??? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145811@lists.php.net to get a copy of this message | ||
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