If I remember correctly there was talk of some easy attributes,
something like :

%div[class='hello' title='something else #...@cool}']

Should be fast, and is very easy on the eye. Is this or similar still
being considered?



On 22 Dec, 22:44, Nathan Weizenbaum <[email protected]> wrote:
> Given that there's already a pretty good way to do this, and we're
> trying to stabilize the Haml feature set, I don't think this is
> something we want to add.
>
> Ardekantur wrote:
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to