On Mon, Mar 10, 2008 at 8:37 PM, Peter <[EMAIL PROTECTED]> wrote:
> I'd like to add multiple classnames to a div, and two of them are
> variable. This already works...
> .featured{:class => (cycle 'left', 'right')}
> ...but i want another one (category.name) added as a classname. Using
> another :class=> declaration apparently skips the previous one, so i'm
> wondering how i should do this.
.featured{:class => "#{cycle 'left', 'right'} #{category.name}"}
should work, no?
Mikel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---