[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML

webmaster@zope.org webmaster@zope.org
Sun, 17 Nov 2002 08:39:47 -0500


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#3-179

---------------

      Here's how to use the *try* tag to avoid errors that could occur
      in the last example::

        <dtml-try>

          Cost per unit: <dtml-var 
                               expr="_.float(total_cost/total_units)"
                               fmt="dollars-and-cents">

        <dtml-except ZeroDivisionError> 

          Cost per unit: N/A 

        </dtml-try> 

        % Saman - Nov. 17, 2002 8:39 am:
         dont you need to close the except tag: <dtml-except  since you refer to it as a block???