Indeed it shouldn't be doing that. I'll fix it this evening.

- Nathan

On 3/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> When doing something like the following in HAML
>
> [EMAIL PROTECTED]
>
> If var represents a class like Foo::Bar haml will generate the
> following.
>
> <tag class="foo/bar" id="foo/bar_1"></tag>
>
> Trouble is that class names, ids can't have slashes, it's not valid
> xhtml and incompatible with the other simply_helpful helpers. Simply
> helpful will replace the slashes with underscores.
>
> Simple fix is to change the following line in buffer.rb (line 164 in
> 1.5.0)
>   class_name = ref.class.to_s.underscore
> to
>   class_name = ref.class.to_s.underscore.gsub('/','_')
>
>
> That'll give you valid xhtml class names and be compatible with the
> other simply_helpful methods.
>
>
> >
>

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