Complete solutions to convert ERB, SLIM, AND HAML with the least amount of manual effort.
Features:
- Converts ERB, SLIM, or HAML
- Support conversion in both directions for each view template language
gem install ruby_view_template_converters
Or if you want to download and use the scripts directly you can download from the bin/
folder
ruby_view_template_converters --erb-to-haml <file-path-or-glob>
ruby_view_template_converters --erb-to-haml <file-path-or-glob>
ruby_view_template_converters --slim-to-erb <file-path-or-glob>
ruby_view_template_converters --slim-to-haml <file-path-or-glob>
ruby_view_template_converters --haml-to-erb <file-path-or-glob>
ruby_view_template_converters --haml-to-slim <file-path-or-glob>
ViewTemplateConverters.erb_to_slim(file_path_or_glob)
ViewTemplateConverters.erb_to_haml(file_path_or_glob)
ViewTemplateConverters.slim_to_erb(file_path_or_glob)
ViewTemplateConverters.slim_to_haml(file_path_or_glob)
ViewTemplateConverters.haml_to_erb(file_path_or_glob)
ViewTemplateConverters.haml_to_slim(file_path_or_glob)
Created & Maintained by Weston Ganger - @westonganger