[Zope] Using tal and no dmtl.
Dmitry Dembinsky
dmitry@deluxoft.com
Fri, 30 May 2003 08:56:18 +0200
> simply run a python function? We've been using the omit-tag
> to do this, but I find this cludgy.
>
> <div tal:omit-tag="python:foo()"></div>
>
> Are other people just using dmtl for this sort of thing. Is
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.
Regards,
Dmitry