haml2slim icon indicating copy to clipboard operation
haml2slim copied to clipboard

Haml to Slim converter.

Results 13 haml2slim issues
Sort by recently updated
recently updated
newest added

Hi, This change enables to support new Ruby 1.9 style hash syntax like below: Haml: ``` haml %a{title: 1 + 1, href: "/#{test_obj.method}", height: "50px", width: "50px"} ``` will be...

Some inline javascript has a '|' appended to it.

I.e. the succeed helper isn't converted correctly

This HAML line: %html.no-js{lang: :en} Converts to this SLIM line: html.no-js lang: :en

it's breaking on Ruby 1.9, when converting HAML files that use accents, for example. ``` /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:18:in `[]': invalid byte sequence in US-ASCII (ArgumentError) from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:18:in `parse_line' from /Users/rafaelb/.rvm/gems/ruby-1.9.3-p194@new21ettr/gems/haml2slim-0.4.6/lib/haml2slim/converter.rb:8:in `block in...

haml: `%h1{:style => "float:left; "} #{'somevar'}: Some Text` slim: `h1 style=("float:left; "} #{'somevar') : Some Text` Gives Error: syntax error, unexpected '}', expecting ')'

For example, `%a{:href => ""} foo` produces `a href="#"` (foo is lost) Also, `#slideWidget{'data-slideshow-nav' => 'true', 'data-slideshow-pager' => 'true', 'data-slideshow-captions' => 'false'}` produces `#slideWidget 'data-slideshow-nav' =(>)'true', 'data-slideshow-pager' =(>)'true', 'data-slideshow-captions' =(>)'false'`

This guy really wants to support slim, but there are tool problems. Please look at files https://github.com/RailsApps/rails-composer/tree/master/files/app/views/layouts/application.html.slim https://github.com/RailsApps/rails-composer/tree/master/files/app/views/users/index.html.slim https://github.com/RailsApps/rails-composer/tree/master/files/app/views/users/_user.html.slim There are multiple errors when these are run through erm2haml |...

http://haml.info/docs/yardoc/file.REFERENCE.html#html5_custom_data_attributes ``` .text{ :data => { :elem => "text" } } ``` should be converted to ``` slim .text data-elem="text" ``` Currently those attributes are copied over with the hash...

Here's a simplified test case of what I am seeing: ``` %ul{:class => "simple-list#{' with-icon' if false}"} ``` -> ``` ul{:class => "simple-list# ' with-icon' if false}" ``` I expected...