Fwd: Use-cases for strictinsert=True?
Fred Drake <[email protected]> Tue, 20 Sep 2005 12:56:33 -0400
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
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:<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