If I'm not mistaken, ruby 1.9 provides a more concise way to declare hash
key-value pairs. I don't have the beta pickaxe in front of me, but I believe
it looks like this:

new_style_hash = { key1: value1, key2: value2, ... }

Perhaps haml could use that?


On Wed, Nov 12, 2008 at 11:22 AM, Nathan Weizenbaum <[EMAIL PROTECTED]>wrote:

>
> We're currently considering alternative, more concise attribute syntaxes.
>
> weepy wrote:
> > or perhaps square brackets would be better ?
> >
> > #td[colspan="2" style="color: red"]
> >
> > (note that I even made a mistake in my conversion to ruby in the first
> > example!)
> >
> >
> >
> >
> > On 12 Nov, 10:55, weepy <[EMAIL PROTECTED]> wrote:
> >
> >> The only thing in HAML that I find is a PITA is having to specify
> >> attributes as a hash.
> >> This is particularily annoying when converting some HTML -> HAML (yes
> >> I know there's a converter - but it's not always that straight forward
> >> e.g. if it's actually ERB) :)
> >>
> >> Would it be possible to do something like
> >>
> >> #td(colspan="2" style="color: red")
> >>
> >> as an alternative to
> >>
> >> #td{ :colspan=>"2" :style=>"color: red"}
> >>
> >> ?
> >>
> > >
> >
> >
>
>
> >
>


-- 
Bradley Grzesiak
[EMAIL PROTECTED]
http://toleoandbeyond.blogspot.com

* You have received an email from my personal account. Please do not divulge
this address to any website (eg: evite, shutterfly, etc). I have another
address for such uses; please ask me for it.

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