"Dr. Armin Tschammer" wrote: > XY.py : > > d = {} > d['x1']=1 > d['x2']=2 > X = DocumentTemplate.HTMLFile('X3.dtml') > string = X(d) Hmm. Have you tried this, instead? class Foo: pass myfoo = Foo() foo.x1 = 1 foo.x2 = 2 X = DocumentTemplate.HTMLFile('X3.dtml') output = X(foo) Regards, Martijn