Skip to content

Instantly share code, notes, and snippets.

View waymondo's full-sized avatar

justin talbott waymondo

View GitHub Profile
namespace :haml do
desc "Convert HAML templates to ERB"
task :convert_to_erb do
# Assumes you have faraday in your Gemfile
conn = Faraday.new(url: "https://haml2erb.org") do |f|
f.request :json
f.response :json
end
haml_filenames = Dir["app/views/**/*.haml", "app/components/**/*.haml", base: Rails.root]