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


Guillaume Lecanu 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.
>
> Thanks
> ------------------------------------------------------------------------
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>   

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

Reply via email to