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>

or

<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
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to