[Zope] dtml-var weirdness
Wolfgang Strobl
ws@mystrobl.de
Sun, 17 Feb 2002 08:58:08 +0100
On 16 Feb 2002, at 16:38, Andreas Jung wrote:
(in response to a question about the name attribute of the var tag.
> Has there ever been one ? The docs don't mention a 'name'
> attribute.
It's still in heavy use on zope.org, for example. And it is still documented on
zope.org, too.
The idiom <dtml-var name="..."> is scattered all over zope.org.
Just for fun, try
http://www.google.de/search?q=%22dtml-
var+name%22+view_source+site%3Awww.zope.org
This results in 96 hits, at this moment.
Specifically, have a look at
a) zope.org, usage
http://www.zope.org/Products/all_products/view_source, line 27
"<dtml-if name="sequence-start">
<dtml-var name="document_title">
Products <dtml-var name="sequence-number">
...
b) zope.org, documentationnn
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.4.1.html
DTML Tag Syntax
...
<dtml-var name="standard_html_header">
...
c) zopelabs
http://www.zopelabs.com/cookbook/990721623
"knowing the difference between <dtml-var name="foo">;
and <dtml-var expr="foo">; will surely make learning Zope
a bit more easy."
...
>
> - aj
> ----- Original Message -----
> From: "Oleg Broytmann" <phd@phd.pp.ru>
> To: "Andreas Jung" <andreas@andreas-jung.com>
> Cc: <zope@zope.org>
> Sent: Saturday, February 16, 2002 15:15
> Subject: Re: [Zope] dtml-var weirdness
>
>
> > On Sat, Feb 16, 2002 at 12:52:30PM -0500, Andreas Jung wrote:
> > > - dtml-var has no 'name' attribute but an 'expr' attribute
> >
> > WHAT? When and where dtml-var lost its name attribute?
> >
> > Oleg.
> > --
> > Oleg Broytmann http://phd.pp.ru/
> > phd@phd.pp.ru
> > Programmers don't die, they just GOSUB without RETURN.
--
Wolfgang Strobl