Hello all -
I know there's usually apprehension about adding new syntax to an
established templating language, but I was wondering if anyone has
thought about the addition of a small helper to make dynamic class
names easier?
For instance, instead of the normal:
.test{ :class => "#{something} #{something.else}" }
Although HTML allows for class elements with all characters (<div
class='("")'> is suprisingly valid), HAML won't parse something like
that, so don't we take advantage of that, and allow:
.test.(something).(something.else)
I'm completely technically ignorant of what work HAML does on the back-
end to retrieve class and ID names specified with the shortcut syntax,
so I have no idea how difficult something like this would be, which is
why I'm asking now :-)
Any thoughts?
- Ardekantur
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---