On 19-11-2008 at 10:11:37 Szymek <[EMAIL PROTECTED]> wrote:

Which method of inserting a single variable into same element is better:

<span><x tal:omit-tag="" tal:content="price"> €</span>


<span>${price} €</span>
Evidently second method is much shorter, but which is more productivity (which is easier for PHPTAL to parse)?

For single-variable expressions it doesn't matter - PHPTAL generates identical code in both cases. Use syntax that you prefer.

Expressions with alternatives like 'price | defaultPrice | nothing' are better implemented in tal:content/tal:replace.

regards, Kornel

PHPTAL mailing list

Reply via email to