On Tue, 27 Feb 2001 02:30, Hamish Lawson wrote:
I propose including tino's patched version of the <dtml-in> tag in a future version of Zope.
Providing there are no bugs, I wholeheartedy agree with you. Now, I know a lot of people think DTML should be left to die, but personally I think it is not given enough credit. DTML is a wonderful language, and can greatly ease peoples transition from other systems into Zope. Everyone told me 'no, use python to do all your work'. But until Python Methods (and now Python Scripts) it was impractical. My first three Zope applications were entirely in DTML, and the clients have loved every one of them.
It provides two enhancements:
1. For all variables that include hyphens there are aliases that use underscores.
Have been wishing for this for a long time. (o8
So instead of
<dtml-var expr="_['sequence-item'] * 3">
you can write
<dtml-var expr="sequence_item * 3">
2. You can choose the prefix to be used for sequence variables.
Makes a lot of sense to me.
<dtml-in ... prefix="outer"> <dtml-in ... prefix="inner"> <dtml-var expr="outer_item * inner_item"> </dtml-in> </dtml-in>
Hamish Lawson
Have a better one, Curtis Maloney