Re: [PHPTAL] Variable interpolation inside structure'd expression

2013-05-30 Thread Robert Goldsmith
Hello :) I'm not sure I understand your problem but for the href you should prob. do something like: a tal:attributes=href string:${appURL}/the-rest-of-the-pathsome text/a Robert - Robert Goldsmith rgoldsm...@names.co.uk On 30 May 2013, at 05:21, romtek rom...@gmail.com wrote: Hi,

Re: [PHPTAL] Variable interpolation inside structure'd expression

2013-05-30 Thread Iván Montes
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

Re: [PHPTAL] Variable interpolation inside structure'd expression

2013-05-30 Thread romtek
Hi, Robert, I used to do what you suggested for href, but later I learned a shorter and more readable way — the way I showed: a href=${somevar}/morestufftext/a. As for the gist of my question, see Iván's answer. I will try his suggestion. Roman On Thu, May 30, 2013 at 3:02 AM, Robert

[PHPTAL] Variable interpolation inside structure'd expression

2013-05-29 Thread romtek
Hi, I need help with something... I have the following in my template: div tal:content=structure product/descrfull product description here/div Values of product/descr are taken from a database. This works. However, I wanted to include a path to the app in links like so: a