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

Sidnei da Silva sidnei@x3ng.com
Fri, 14 Feb 2003 15:23:17 -0200


On Fri, Feb 14, 2003 at 10:49:50AM -0600, Evan Simpson wrote:
| 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 :-(

Hey! I thought this was implemented/was planned to be implemented in
Zope3. Anyone has an idea?

[]'s

-- 
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>
GNU/Linux user 257852
Debian GNU/Linux 3.0 (Sid) 2.4.18 ppc

If it has syntax, it isn't user friendly.