Re: [PHP Template] DTML?

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
On Thu, 17 Feb 2000, Dan Libby wrote:
> What's the point of this?  The whole theory behind using templates is separation
> of display (HTML) from code.  If you want to mix the two, you may as well use
> standard PHP which allows just that, eg:
> 
> <P>My name is <?php echo $myname; ?>.</P>
> 
> If our template system allows arbitrary mixing of code and display, then it has,
> in my opinion, lost its reason for existing.

I don't like PHP embedding either, but if someone really really wants it
they can do it themselves by running eval() on results of tpl_fetch().
Their mess to live with.

-Andrei

"The secret of flying is to throw yourself
at the ground, and miss." -- Douglas Adams
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.