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.