13 Apr 00:21
Re: option select in petal - ideas?
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.
RSS Feed