On 07-08-2009 at 14:32:43 Guillaume Lecanu <guilla...@lya.fr> wrote:

Hi everybody,

I use this syntax :

<input name="firstname" value="" tal:attributes="value firstname|" />

Note the pipe character at the end of the expression.
So, if the firstname value exists, this show it and if the value is not
set, this return an empty string.

It's perfect for me, but I just want to be sure if this syntax is good
and will not be deprecated in future.

I'm surprised it works at all :)

You should use "| nothing" or "| ''".

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to