slim-template / haml2slim

Haml to Slim converter.
http://slim-lang.com/
120 stars 20 forks source link

Support new 1.9 hash syntax #23

Closed a2ikm closed 3 months ago

a2ikm commented 10 years ago

Hi,

This change enables to support new Ruby 1.9 style hash syntax like below:

Haml:

%a{title: 1 + 1, href: "/#{test_obj.method}", height: "50px", width: "50px"}

will be converted to Slim:

a title=(1 + 1) href="/#{test_obj.method}" height="50px" width="50px"

Thanks!

mpelzsherman commented 10 years ago

Please consider merging this, thanks.

MichaelSp commented 9 years ago

+1

fukajun commented 8 years ago

+1

minad commented 8 years ago

@fredwu ping, happy 2016 btw :fireworks:

brand-it commented 8 years ago

+1