[Zope] nested dtml-with

Paz paz@chello.nl
Wed, 12 Jun 2002 22:37:16 +0200

Greetings all,

I have two snippets of code, the later I wish would work. Can anyone
point out why?

The structure:
folder1 /
         folder2    /

This works:

<dtml-with folder1>
    <dtml-var index_html>
    <dtml-with folder2>
       <dtml-var index_html>

This doesn't:
<dtml-in "['folder1', 'folder2']">
   <dtml-with "_.getitem(_['sequence-item'])">
     <dtml-var index_html>

I'd like the second to work. If I inject that with a try/except I find
the first iteration works, but the second raises a key error. Can
someone help?

Thanks as always,