Thanks, so much!

On Apr 10, 6:22 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> If you want to set the id for a div dynamically, you should set it like
> any other attribute: using an attribute hash. For example:
>
> %body{:id => @var}
>
> Hope that helps!
> - Nathan
>
> xajler wrote:
> > I'm not too long in Haml I first hear of him last friday, and I
> > started to rewrite my PHP pages in Rails and since I don't like ERb, I
> > give it a try for Haml because that was the ting that Rails needed,
> > ERb is ugly as PHP and I hate that mix of markups. At first I really
> > lost my nerve with spaces and debugging my dumb mistakes but after few
> > hours there was no error that I couldn't manage. Haml rocks!
>
> > I had a problem I just haven't see the example of I called them
> > dynamic divs, all of the examples are with divs that are predefined in
> > haml code. Maybe is a dumb question?
>
> > Is there any possibility to do something like this:
>
> > %body# [EMAIL PROTECTED]
>
> > I just want for body's id (or it could be either class) to be some
> > variable, not something yet predefined. Is it there some magic that
> > you workaround?
>
> > Thanks in advance...


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