Re: [PHP Template] DTML?
| From: | Monte Ohrt | Date: | Thu, 17 Feb 2000 16:05:44 +0000 |
| Subject: | Re: [PHP Template] DTML? | ||
| References: | 1 2 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-109@lists.php.net to get a copy of this message | ||
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.