Same way as before:

%td{:class => true ? "true_class" : "false_class"}

bartocc wrote:
> A bit like my previous post, is there an easy way to set a tag class
> instead of doing
>
> if true
>   %td.true_class
> else
>   %td.false_class
>
> Thx for the help
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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