30 May
2003
30 May
'03
1:34 p.m.
On Fri, 30 May 2003, Dmitry Dembinsky wrote:
We use tal:define for this purpose:
<body tal:define="dummy python:foo(); <other assignments>" ...
Usually this way we run some page setup code which we put inside <body> or even top-level <html> tag.
We have done this as well. It just seemed an obvious hole in the tal system. There should be a way to execute arbitrary code in tal. Something like: <body tal:run="python:foo()"> John -