In addition to the options already mentioned on this thread, you can also
use HTML-style attributes:

%div(class="tipped" data-tipped"A basic tooltip")

On Wed, Dec 22, 2010 at 11:29 AM, Chris Eppstein <ch...@eppsteins.net>wrote:

> The bit between the curly braces is parsed by ruby. Your code is not valid
> ruby. A symbol containing a dash should be quoted:
>
> :"data-typed"
>
> Chris
>
> Hunt & pecked on my iPhone... Sorry if it's brief!
>
> On Dec 22, 2010, at 11:01 AM, SS <stoyan.stoitch...@gmail.com> wrote:
>
> > 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 h...@googlegroups.com.
> > To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> > 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 h...@googlegroups.com.
> To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> 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 h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to