15 Nov
2005
15 Nov
'05
6:17 p.m.
Mark Gibson wrote at 2005-11-14 13:19 -0700:
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?
You create a "Products.PageTemplates.ZopePageTemplate.ZopePageTemplate" with the string as "text", put it into the acquisition context by a call to its "__of__(context)" method (this defines 'here', 'container', 'request', ...) and then call it. You can do this in trusted code only... -- Dieter