[ZPT] Quick question
Evan Simpson
evan@digicool.com
Thu, 21 Jun 2001 10:09:48 -0400
Richard Jones wrote:
>>2) <input tal:attributes="value request/somevar | nothing" type="hidden"
>>name="somevar" value="" />
>
> This will remove the tag if request/somevar isn't present. You want:
>
> <input tal:attributes="value request/somevar | default"
> type="hidden" name="somevar" value="" />
Not in this case; He's using tal:attributes, not tal:replace, so the
only difference is whether the "value" attribute is removed or left in
place (along with its default value).
Cheers,
Evan @ digicool