On Fri, Jun 23, 2000 at 04:32:39PM +1000, Jay, Dylan wrote:

> It seems to me that a few tweaks to the dtml-if syntax would be beneficial
> 
> something like the following would certainly clean up some of the logic I
> end up writing.
> 
> <dtml-if X>
>  <a href="a_url">
> <dtml-always>
>  link text
> <dtml-else>
>  (no link currently available)
> <dtml-then>
>  </a>
> </dtml-if>

<dtml-if X>
   <a href="a_url">
   link text
   </a>
<dtml-else>
   link text
   (no link...)
</dtml-if>

Now what's cleaner and easier to the eyes?

Or for the obfuscated DTML context:

<dtml-var "['<A HREF=....>',''][not X]">
   link text
<dtml-var "['</A>','(no link...)'][not X]">


:-)


-- 
"This company has performed an illegal operation and will be shut down.
 If the problem persists, contact your vendor or appeal to a higher court."
 - Signal11 on slashdot

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to