When one iterates through Ruby hashes (which is what the attribute
hashes are, of course), the order isn't guaranteed to be anything in
particular. Because of this, a bunch of our tests would fail randomly
because attribute ordering didn't match up; thus, we decided to just
sort the things. Even if we didn't do so, though, it wouldn't be
possible to have the attributes show up in the same order you entered them.
- Nathan
Hugh Evans wrote:
> Hi, I'm only starting out with HAML but I've noticed that my
> attributes are being put in alphabetical order rather than the order
> I've entered them:
>
> %html{'xmlns'=>'http://www.w3.org/1999/xhtml', 'xml:lang'=>'en',
> 'lang'=>'en'}
>
> Becomes:
>
> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
>
> No big deal but just doesn't look right.
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---