Re: option select in petal - ideas?

Jean-Michel Hiver <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
Hi Christopher,

Christopher Heschong wrote:
> Lets say you have a select statement:
> 
> <select name="foo">
>  <option tal:repeat="foo bar"
>          tal:contents="foo/content"
>          tal:attributes="selected foo/selected">option</option>
> </select>
> 
> The problem is that there is no way for Petal to eliminate the selected
> attribute if foo/selected returns false.

Petal should remove the attribute if foo/selected returns undef.

Cheers,
Jean-Michel.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.