html2slim icon indicating copy to clipboard operation
html2slim copied to clipboard

Ruby API for conversion

Open shivabhusal opened this issue 7 years ago • 2 comments

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.

shivabhusal avatar Aug 19 '17 06:08 shivabhusal

Sorry, I don't follow.

joaomilho avatar Aug 21 '17 06:08 joaomilho

I was looking for Ruby APi like

ERB2Slim.convert(File.read('path/to/some/file'), File.read('path/to/dest_file'))

shivabhusal avatar Aug 23 '17 04:08 shivabhusal