Re: [PHPTAL] omit-tag or ${}?

2008-11-19 Thread Kornel Lesiński
On 19-11-2008 at 10:58:02 Szymek Przybył <[EMAIL PROTECTED]> wrote: How works this expression: 'price | defaultPrice | nothing' (I don't saw something like this in manual)? With "|" operator, PHPTAL uses first variable it can find. If variable "price" doesn't exist, PHPTAL will look for vari

Re: [PHPTAL] omit-tag or ${}?

2008-11-19 Thread Christoph Frick
On Wed, Nov 19, 2008 at 11:58:02AM +0100, Szymek Przyby? wrote: > How works this expression: 'price | defaultPrice | nothing' (I don't > saw something like this in manual)? it evaluates like a logical or in php. is there price? use it - if not is there defaultPrice? use it - if not use nothing. b

Re: [PHPTAL] omit-tag or ${}?

2008-11-19 Thread Kornel Lesiński
On 19-11-2008 at 10:38:49 Szymek Przybył <[EMAIL PROTECTED]> wrote: What difference is between replace and content? Replace always replaces entire tag. It's a shortcut for tal:omit-tag and tal:content at once. In my example I want to add after "price" variable EURO sign. But maybe better

[PHPTAL] omit-tag or ${}?

2008-11-19 Thread Szymek Przybył
How works this expression: 'price | defaultPrice | nothing' (I don't saw something like this in manual)? And how difference is between replace and content expression? cheers, szymek ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.

Re: [PHPTAL] omit-tag or ${}?

2008-11-19 Thread Kornel Lesiński
On 19-11-2008 at 10:11:37 Szymek <[EMAIL PROTECTED]> wrote: Which method of inserting a single variable into same element is better: € or ${price} € ? Evidently second method is much shorter, but which is more productivity (which is easier for PHPTAL to parse)? For single-variable expres

[PHPTAL] omit-tag or ${}?

2008-11-19 Thread Szymek Przybył
What difference is between replace and content? In my example I want to add after "price" variable EURO sign. But maybe better way to do it is just add to "price" variable this sign in PHP, before sending it to phptal template: price=$price;?> And better is to use entities (€) or entites afte

Re: [PHPTAL] omit-tag or ${}?

2008-11-19 Thread Christoph Frick
On Wed, Nov 19, 2008 at 11:11:37AM +0100, Szymek wrote: > Which method of inserting a single variable into same element is better: > > ??? > > or > > ${price} ??? > ? > Evidently second method is much shorter, but which is more productivity > (which is easier for PHPTAL to parse)? or /price/

[PHPTAL] omit-tag or ${}?

2008-11-19 Thread Szymek
Hi! Which method of inserting a single variable into same element is better: € or ${price} € ? Evidently second method is much shorter, but which is more productivity (which is easier for PHPTAL to parse)? cheers, szymek ___ PHPTAL mailing li