[Zope] Re: Java re-invents DTML :-)

Charlie Reiman creiman@kefta.com
Fri, 14 Feb 2003 09:52:29 -0800


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Evan
> Simpson
> Sent: Friday, February 14, 2003 8:50 AM
> To: zope@zope.org
> Subject: [Zope] Re: Java re-invents DTML :-)
>
>
> Kevin Carlson wrote:
> > Come on folks.  There's nothing wrong with supporting two templating
> > languages.  Quite honestly, dtml is much easier to learn for most and
> > has it's place in application development -- just as ZPT does.
>
> Quite true.  DTML can be very handy for templating non-tag-based text.
>
> On the other hand, DTML has several misfeatures and drawbacks that ought
> to be fixed, and leveraging TALES may be a good way to do it.  For
> example, instead of:
>
> <dtml-with x><dtml-with y><dtml-var z></dtml-with></dtml-with>
> ...or...
> <dtml-var expr="x['y'].z()">
>
> ...we could have...
>
> <dtml-var name="x/y/z">
>
> Another advantage would be the ability to control context, writing
> "here/foo" to acquire a foo object and "request/foo" to get request
> variable "foo".
>
> This was proposed way back when, but nobody has had the time to do it :-(

Too bad. This would pretty nice. Would this be done as a third kind of DTML
object? How would you prevent breaking older DTML objects?