[Zope] Using DTML - I'm too stupid

Oliver Thuns Oliver Thuns" <oliver.thuns@gmx.de
Fri, 09 Apr 1999 20:14:26 +0100


>On Fri, 9 Apr 1999, Oliver Thuns wrote:
>> Could I use DocumentTemplate without Zope and ZPublisher. I want to
>
>   Examples attached.

Now I understand it a little bit more... :-)

Python code:
T = DocumentTemplate.HTMLFile('sample.dtml')
print T(u=1, t={'1': 'abc', '2': 'DEF'})

<!--#var name="u"-->
and
<!--#var name="t"-->

works, but not

<!--#var name="t['1']"-->

What's wrong with this?