Re: XML Templates...
| From: | Andrei Zmievski | Date: | Tue, 15 Feb 2000 18:36:51 +0000 |
| Subject: | Re: XML Templates... | ||
| References: | 1 2 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-27@lists.php.net to get a copy of this message | ||
On Tue, 15 Feb 2000, Jade Meskill wrote:
> so the HTML designer creates a vanilla HTML document awaiting ties to the
> database...
>
> See before.html (attached)
>
> Then the developer comes in behind the designer and adds the database
> functionality to it... this saves the designer and the developer from
> having to learn unfamiliar syntax (as far as the current template sytem
> looks) to be included in the template (and is much more standardized IMHO).
>
> See after.xml (attached)
>
> We are really talking about the same thing, just a different approach...
> Thanks for your time. :)
It is a different approach. In most cases we have the templates going
back and forth between developer and designer, so having XML code might
be a tad confusing. Secondly, my personal opinion is that templates
should not have any sort of database access in them. By the time you put
DB calls, while loops, etc. you're back to reimplementing PHP.
-Andrei
* A feature is a bug with seniority. *