Re: XML Templates...
[email protected] (Andrei Zmievski)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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. *