[Zope] Question about <dtml-let ...>

Dieter Maurer dieter@handshake.de
Thu, 9 May 2002 20:34:45 +0200


George M. Ellenburg writes:
 > Gotcha.  So I take it there's no variable typing?  "400" is both a string and 
 > an integer?
The "400" in

    <dtml-let TD_WIDTH="400">

is an integer and not a string. Unlike in Python Script, the
"..." does not indicate a string but a Python expression context.

To get the string "400", you would use

   <dtml-let TD_WIDTH="'400'">

 > ...
 > Hmmm... would <!--#let TD_WIDTH="400"--> work better, or can I just put the 
 > </dtml-let> on the line right below it?
There is no difference (in function) between "<!--#let ..." and "dtml-let".
The former is just the older SSI (Server Side Include) syntax.


Dieter