Oh, I meant that that's what I'd like to do... not what's working now. For
now, I think you'll have to do it manually.

- Nathan

On 6/5/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
>
>  Thanks for your quick response, Nathan.  It seems that works... mostly.
> I don't want to obliterate the class if the condition is false, just not
> _add_ the "selected" class. So basically, I want this:
>
> condition is false:
>
> <div class="item" id="item_19">
>
> condition is true:
>
> <div class="item selected" id="item_19">
>
> Sean
>
> Nathan Weizenbaum wrote:
>
> No, there isn't. I may have
>
> %div{:class => condition ? "selected" : nil}[item]
>
> Work like that.
>
> - Nathan
>
> On 6/5/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> >
> >
> > Is there a way to do what I'm trying to do here that preserves the
> > "SimplyHelpful" auto-id-and-class stuff and also conditionally adds a
> > class?
> >
> > %div{:class => condition ? "selected" : ""}[item]
> >
> > I can't figure out a way to do it cleanly without resorting to
> > generating the default id and class manually.
> >
> > Cheers,
> >
> > Sean
> > p.s. RadiantCMS now has Sass:
> > http://dev.radiantcms.org/radiant/browser/trunk/extensions/sass_filter
> >
> >
> >
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to