In the original PhpTal it was not possible to automatically parse arbitrary strings, I don't know if this feature has been introduced in later releases.

The common approach is to execute the string as a template, introducing the result in the actual template context. If this is a pattern that repeats itself quite a bit, you can wrap that functionality inside a custom modifier so that you can do stuff like this:

<div tal:content="structure tpl:product/descr">...</div>

PHPTAL mailing list

Reply via email to