[Zope] The Honest Scoop on Zope

John Goerzen jgoerzen@complete.org
08 Sep 1999 18:27:27 -0500


Terrel Shumway <tshumway@epicor.com> writes:

> <dtml-let var1=expr1 var2=expr2>
>   <dtml-var var1 fmt="date" ...>
>   <dtml-var var2 ...>
> </dtml-let>

OK, now a problem with both of these is that they require a closing
tag.  What I need to do is set a variable only if it is not already
passed in.  Ie:

<dtml-unless myvar1>
  Set myvar1 here
</dtml-unless>
  
 various code here that uses myvar1

But, dtml-with or dtml-let won't work, because I have to close the
tags for them before the closing dtml-unless tag -- I can never get to 
the code below with the new value.  How does one get around this?

Thanks,
John

> 
> or 
> <dtml-with some-complicated-expression>
>    use the generated namespace
> </dtml-with>
> 
> I have found http://www.zope.org:18200/Members/Cyberrunner/QuickReference to
> be invaluable.
> 

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
The 750,434th digit of pi is 3.