ZPT? (was Re: [Zope] dtml-in over python script)
Chris Withers
chrisw@nipltd.com
Tue, 09 Jul 2002 12:05:10 +0100
Charlie Reiman wrote:
>
> Dictionaries don't work, as I mentioned. That is, I can return dictionaries
> but then I have to access them in DTML will cruft like:
>
> <dtml-var expr="_['sequence-item']['favorite_food']">
>
> which strikes me as ridiculous. It's just personal opinion though.
so don't use DTML ;-)
in ZPT, it would be something like:
<tal:x repeat="item here/yourPythonScript">
<tal:x replace="item/favourite_food">
</tal:x>
cheers,
Chris