Re: [PHP Template] DTML?

[email protected] (Monte Ohrt)
Newsgroups php.template
Organization ispi
Message-ID <[email protected]>
Teodor Cimpoesu wrote:
> 
> Ludovico Magnocavallo wrote:
> >
> > Just to complicate things further, I was wondering about the use of Zope's
> > DTML (Document Template Markup Language -- the ref is at
> > http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.html) as a
> > template markup language for PHP.
> 
> I would really want to know if the devels knows about this beast and
> what they think about it.
> 
> I already had my hand on Zope, and DTML looks pretty cool.
> Also in DIST/lib/python/DocumentTemplate all the sources are
> well documented, so a good python readed should get plenity of ideas.
> 
> > 1 - compatibility with Zope templates
> > 2 - adherence to a "standard" or to a subset of it
> > 3 - templates commands and vars masked inside HTML comments
> >
> > On the other hand, DTML looks a little too much, it is a sort of
> > programming language in itself.
> 
> Not at all. In fact, everybody complains it's too tight. There were
> talking about adding <dtml-python> tag to support inline python code.
> hmm, mileages?
> 

Our SmartTemplate design does just that, we can imbed php code:

{php:}
	<? echo "foo"; ?>
{/php}


We could put this ability into the template engine.
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.