On 9/20/05, Tonico Strasser <[EMAIL PROTECTED]> 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:&lt;div metal:define-macro='$name'/&gt;"
>    />
> *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 L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation
ZPT mailing list

Reply via email to