[ZPT] Re: Use-cases for strictinsert=True?

Thomas Lotze tl at gocept.com
Tue Sep 20 12:28:20 EDT 2005


Tonico Strasser wrote:

> Just for my understanding: would it be possible to dynamically create
> macros with strictinsert=True?:

It means that if <div tal:content="structure foo/bar" /> is interpreted
with strictinsert=True on the TALInterpreter used, foo/bar had better
resolve to something well-formed.

> <div
>    tal:repeat="name python: ('foo', 'bar', 'baz')" tal:replace="structure
>    string:&lt;div metal:define-macro='$name'/&gt;" />

Just don't show this to little children, OK?

-- 
Thomas




More information about the ZPT mailing list