[ZPT] Metal and macros
Ulrich Eck
ueck@net-labs.de
Sat, 21 Jul 2001 00:01:35 +0200
> Actually, after looking at it some more, I think I'll make a
> TALGenerator function that restricted code could import. This would let
> you write Script code like this:
>
> from Products.PageTemplates.ZopePageTemplate import TALGenerator
> gen = TALGenerator()
> gen.emitRawText('<b>')
> gen.emitText('Hi, %s, this is HTML quoted!' % context.getName())
> gen.emitRawText('</b>')
> return gen.getCode()
>
> This Script could then be used directly as a macro.
>
Right at the moment this is exactly what i would need to build my
portal_forms Tool
for CMF ...
Are there anny plans to implement this soon ??
thanks
Ulrich Eck