I know this is an old question, but now there is an ideal solution. The latest thin interface supports user-friendly attr_delims parameters. I do not know when it was added, but v2.0.3 has this. Using the command line you can use:
slimrb -o "attr_delims={'(' => ')', '[' => ']'}" <file>
Or, if you are using gulp-slim , you can write it like this:
.pipe(slim({ pretty: true, options: "attr_delims={'(' => ')', '[' => ']'}" }))
You can refer to the document here .
ybian source share