News for hackers. Stuff that matters.
Re:R.I.P. Ruby Hash Rocket Syntax 1993-2010 by aaronbrethorst on Wednesday January 05, 2011 @10:23PM (#2073771)
Combining Haml with jQuery Mobile makes it pretty much mandatory:

    #main_page{:"data-role" => 'page'}
Re:R.I.P. Ruby Hash Rocket Syntax 1993-2010 by nex3 on Thursday January 06, 2011 @12:51AM (#2074226)
Haml keys can be plain strings.

    #main_page{"data-role" => 'page'}
`data-` attributes are also special-cased:

    #main_page{data: {role: 'page'}}
Re:R.I.P. Ruby Hash Rocket Syntax 1993-2010 by aaronbrethorst on Thursday January 06, 2011 @12:53AM (#2074234)
I did not know that. Thanks for the heads up, and thanks for Haml and Sass!
Re:R.I.P. Ruby Hash Rocket Syntax 1993-2010 by snprbob86 on Thursday January 06, 2011 @06:43AM (#2074939)
You can also use "HTML-style attributes" [1]

    #main_page(data-role='page')
[1] http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#ht...