Hopefully this kind of issue might go away with Ruby 1.9 which uses a
more featured regular expression engine

On Apr 4, 6:17 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> This is a known bug. It's due to a weakness in Ruby regular expressions
> - they're unable to deal with nested characters, like brackets or
> parentheses. We had to either break
>
> %div{:class => "test"}= "#{something}somestring"
>
> or
>
> %div{:class => "#{something}somestring"}= "test"
>
> And we chose the former, because we wanted people to be able to embed
> stuff in attribute strings easily.
>
> Thanks, though.
> - Nathan
>
> jevado wrote:
> > Hello,
>
> > When I do something like the following, I'm getting a syntax error
>
> > %div{:class => "test"}= "#{something}somestring"
>
> > There's a workaround:
>
> > %div{:class => "test"}
> >   = "#{something}somestring"
>
> > This works correctly.
>
> > Just wanted to let you know.
>
> > Kind regards,
> > Jeroen van Doorn


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