[Zope] Entity syntax and 2.2

Shane Hathaway shane@digicool.com
Fri, 21 Jul 2000 08:55:46 -0400


andres@corrada.com wrote:
> Perhaps you can suggest a simple way to do something like the following:
> 
> <dtml-if "REQUEST.form.has_key('foo')">
>   <dtml-let previouslyEnteredValue="REQUEST.form['foo']>
>      <input type=text ... value="&dtml-previouslyEnteredValue;">
>   </dtml-let>
> <dtml-else>
>      <input type=text ... value="">
> </dtml-if>

<dtml-let value="REQUEST.get('foo', '')">
  <input type=text ... value="&dtml-value;">
</dtml-let>

This is probably the best you're going to get. :-)

Shane