It's parsed as (:data) - (tipped). Go with "data-tipped" or :data =>
{:tipped => ""}

Magnus
Sent from my phone

Den 22 dec 2010 20.03, "SS" <[email protected]> skrev:

Hi,

I was planning to use Tipped tooltip library, but I don't think I can
now since Haml doesn't seem to parse attributes within elements that
contains a dash '-'. This is what I need to support in Haml so I can
make use of the library for tooltips:

%div{:class=>"tipped", :data-tipped=>"A basic tooltip"}

This is the error message I get:

undefined local variable or method `tipped' for #<ActionView::Base:
0x153e2e10>
Extracted source (around line #51):

48:   %body
49:     %center
50:
51:       %div{:class=>"tipped", :data-tipped=>"A basic tooltip"}



Your help is very appreciated.

Thanks,
SS

--
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] <haml%[email protected]>.
For more options, visit this group at
http://groups.google.com/group/haml?hl=en.

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