I actually want this:
%ul
%li.default
%li.one
%li.two
%li.default
%li.default
The class of an element (one, two, default) should be added by some
logic. I want to use IF condition to determine class name.
Is this possible?
On Jul 21, 8:27 pm, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> I think he actually wanted this:
>
> On 7/21/07, Vlad Rafeyev <[EMAIL PROTECTED]> wrote:
>
>
>
> > - a.each do |n|
> > %li{ :class => "item#{n}" }
> > = n
>
> But I'm not sure.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---