[ZPT] Fwd: Use-cases for strictinsert=True?
Fred Drake
fdrake at gmail.com
Tue Sep 20 12:56:33 EDT 2005
On 9/20/05, Tonico Strasser <contact_tonico at yahoo.de> wrote:
> Just for my understanding: would it be possible to dynamically create
> macros with strictinsert=True?:
>
> <div
> tal:repeat="name python: ('foo', 'bar', 'baz')"
> tal:replace="structure string:<div metal:define-macro='$name'/>"
> />
>
> *shudder*
That's a scary thought!
Actually, that probably executes just fine: it defines a macro,
nothing uses it (except possibly other things in the same bit of
dynamically generated text?), and then it's thrown away.
I'd certainly not expect it to pollute the outer environment.
-Fred
--
Fred L. Drake, Jr. <fdrake at gmail.com>
Zope Corporation
More information about the ZPT
mailing list