Newbie dtml question ( very simple )
12 Mar
1999
12 Mar
'99
9:13 a.m.
Hi, I would like to do things like that: XY.py : d = {} d['x1']=1 d['x2']=2 X = DocumentTemplate.HTMLFile('X3.dtml') string = X(d) WRONG: X3.dtml : <html> <head> Some Stuff </head> <body> More Stuff <!--#var x1--> Other Stuff <!--#var x2--> </body> </html> How does the right X3.dtml file look like ? Thanks, Armin
15 Mar
15 Mar
5:26 p.m.
New subject: [Zope] Newbie dtml question ( very simple )
"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
9884
Age (days ago)
9887
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dr. Armin Tschammer -
Martijn Faassen