html2slim icon indicating copy to clipboard operation
html2slim copied to clipboard

convert html files to slim

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

When I convert this, ``` ``` the result is this. ``` - set_meta_tags title: '出展ガイド' - set_meta_tags \ - description: 'クリーマクラフトパーティ(Creema craft party)のよくある質問はこちら。', \ - open_graph: { \ - description:...

The regexps responsible for converting method calls with blocks did not account for arguments split across multiple lines. This patch enables multi-line method arguments, as long as every line except...

When converting [passwords/edit.html.erb](https://github.com/thoughtbot/clearance/blob/master/app/views/passwords/edit.html.erb) of the [Clearance](https://github.com/thoughtbot/clearance) gem, the following snippet... ``` ``` ...Is converted to: ``` = form_for :password_reset, - url: user_password_path(@user, token: @user.confirmation_token), - html: { method: :put }...

I wish it would provide and document Ruby API so that Libraries(Rails Engines) could use them to let users have options to have the views in `.slim` format as well.

``` ruby IO.popen("html2slim", 'r+') do |io| io.write "" io.close_write puts io.read end ``` Crashes with: ``` /home/me/.rvm/gems/ruby-2.2.0/gems/hpricot-0.8.6/lib/hpricot/parse.rb:33: [BUG] Segmentation fault at 0x00000000000008 ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] -- Control...

I would like to be able to do `pbpaste | html2slim | pbcopy` to process the contents of the clipboard. Current usage: ``` Usage: html2slim INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY] [options] ``` Desired...

This: ``` erb base_login, :class => 'textfield', :placeholder => '[email protected]' %> ``` Becomes: ``` slim tr | = f.label :login, "Email" | = f.text_field 'login', :value => base_login, :class =>...

This: ``` erb Dear , ``` Becomes this (note trailing whitespace after 'Dear'): ``` slim p font[face="verdana" size="5" color="#555555"] strong | Dear = @name | , ``` When it SHOULD...

Should have an option for wrap-width, and allow wrapping at that cutoff.

What can I do? No idea -_- ```bash $ bundle install Installing hpricot 0.8.6 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: ~/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/hpricot-0.8.6/ext/fast_xs ~/.asdf/installs/ruby/3.3.0/bin/ruby extconf.rb...