[Zope] Render a string as tal

Chris Withers chris at simplistix.co.uk
Tue Nov 15 06:20:26 EST 2005


Paul Winkler wrote:
> On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote:
> 
>>I would like to be able to render an arbitrary string as tal, having the
>>tal statements evaluated correctly.
>>
>>How would I go about doing this?
> 
> I assume you  mean TALES expressions.
> See:
> http://zopelabs.com/cookbook/1037762730

He might mean a full blown page template of course ;-)

...in which case he probably wants to instantiate a ZPT and execute it, 
but that feels horribly expensive, unless it's persisted somewhere like 
the ZODB.

Mark, what are you actually trying to do here? ;-)

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list