scope of <dtml-let> tag
Hello All, I faced a parsing error when I used <dtml-if> and <dtml-let>, like below -----some dtml code----- <dtml-if CONDITION> <dtml-let some_function> <dtml-else> <dtml-let other_function> </dtml-if> -----some code------- ------------------------ </dtml-let> The above code gives parsing error about unexpected </dtml-if> It works fine when I give as below <dtml-if CONDITION> <dtml-let some_function> -----some code------- ------------------------ </dtml-let> <dtml-else> <dtml-let other_function> -----some code------- ------------------------ </dtml-let> </dtml-if> Any help on about this behaviour of <dtml-let>. Thanks in advance, Indra.
On 12.06.09 10:27, indrajit926 indra wrote:
Hello All,
I faced a parsing error when I used <dtml-if> and <dtml-let>, like below
-----some dtml code----- <dtml-if CONDITION> <dtml-let some_function> <dtml-else> <dtml-let other_function> </dtml-if> -----some code------- ------------------------ </dtml-let>
The above code gives parsing error about unexpected </dtml-if>
It works fine when I give as below
<dtml-if CONDITION> <dtml-let some_function> -----some code------- ------------------------ </dtml-let> <dtml-else> <dtml-let other_function> -----some code------- ------------------------ </dtml-let> </dtml-if>
Any help on about this behaviour of <dtml-let>.
docs.zope.org -> Zope Book The behavior is correct and documented. -aj
participants (2)
-
Andreas Jung -
indrajit926 indra