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
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to