Re: decode selected trouble

Raymond Barkhouse <raymond-82PhMCRFPxX1uJ/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Organization Print-Quotes Software Inc.
Message-ID <[email protected]>
On Wed, 2005-09-11 at 13:11 -0500, Josh Narins wrote:
> Dear Petal List,
> 
> I've got this in my template:
> 
> <option petal:repeat="o options" 
>         petal:attributes="value string:${o/id}; selected decode: o/selected 1 'selected'">

I use "selected decode:foo 1 'selected' nothing" to stop the attribute
from appearing at all when it's not selected (as needed for HTML).
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.