[Zope] Render a string as tal

Mark Gibson mark at dimensional.com
Tue Nov 15 20:20:39 EST 2005


On Mon, 2005-11-14 at 13:38, 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

Thanks for your suggestion.  This has shed some light on the subject.

However, what I'm looking for is being able to take a string such as 
'<div tal:content="here/absolute_url">The url</div>'

and be able to evaluate the TALES expression in the string to produced
something like: '<div>http://mydomain.com/theUrl</div>'

Any chance there's a recipe for this?
-- 
Mark Gibson <mark at dimensional.com>



More information about the Zope mailing list