haml2slim icon indicating copy to clipboard operation
haml2slim copied to clipboard

Support new 1.9 hash syntax

Open a2ikm opened this issue 12 years ago • 5 comments

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!

a2ikm avatar Feb 25 '14 17:02 a2ikm

Please consider merging this, thanks.

mpelzsherman avatar Aug 23 '14 15:08 mpelzsherman

+1

MichaelSp avatar Sep 04 '15 09:09 MichaelSp

+1

fukajun avatar Dec 24 '15 11:12 fukajun

@fredwu ping, happy 2016 btw :fireworks:

minad avatar Jan 04 '16 20:01 minad

+1

brand-it avatar Jan 19 '16 00:01 brand-it