From 8fbd85f11af8c51cd2d4b4ad76770709ab1003f3 Mon Sep 17 00:00:00 2001 From: JuliusR <> Date: Sat, 18 Dec 2021 11:01:00 +0100 Subject: [PATCH 1/2] add haml-rails --- Gemfile | 2 ++ Gemfile.lock | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Gemfile b/Gemfile index 0f4aea4..8c0e89f 100644 --- a/Gemfile +++ b/Gemfile @@ -54,3 +54,5 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem "haml-rails", "~> 2.0" diff --git a/Gemfile.lock b/Gemfile.lock index ea789dc..3eaa86f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -80,9 +80,24 @@ GEM concurrent-ruby (1.1.9) crass (1.0.6) erubi (1.10.0) + erubis (2.7.0) ffi (1.15.4) globalid (1.0.0) activesupport (>= 5.0) + haml (5.2.2) + temple (>= 0.8.0) + tilt + haml-rails (2.0.1) + actionpack (>= 5.1) + activesupport (>= 5.1) + haml (>= 4.0.6, < 6.0) + html2haml (>= 1.0.1) + railties (>= 5.1) + html2haml (2.2.0) + erubis (~> 2.7.0) + haml (>= 4.0, < 6) + nokogiri (>= 1.6.0) + ruby_parser (~> 3.5) i18n (1.8.11) concurrent-ruby (~> 1.0) jbuilder (2.11.4) @@ -149,6 +164,8 @@ GEM ffi (~> 1.0) regexp_parser (2.2.0) rexml (3.2.5) + ruby_parser (3.18.1) + sexp_processor (~> 4.16) rubyzip (2.3.2) sass-rails (6.0.0) sassc-rails (~> 2.1, >= 2.1.1) @@ -165,6 +182,7 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2) semantic_range (3.0.0) + sexp_processor (4.16.0) spring (4.0.0) sprockets (4.0.2) concurrent-ruby (~> 1.0) @@ -174,6 +192,7 @@ GEM activesupport (>= 5.2) sprockets (>= 3.0.0) sqlite3 (1.4.2) + temple (0.8.2) thor (1.1.0) tilt (2.0.10) turbolinks (5.2.1) @@ -209,6 +228,7 @@ DEPENDENCIES bootsnap (>= 1.4.4) byebug capybara (>= 3.26) + haml-rails (~> 2.0) jbuilder (~> 2.7) listen (~> 3.3) puma (~> 5.0) From 57e4cf3dee23c364d118e161646f2293d665a04c Mon Sep 17 00:00:00 2001 From: JuliusR <> Date: Sat, 18 Dec 2021 11:05:51 +0100 Subject: [PATCH 2/2] rails haml:erb2haml --- app/views/layouts/application.html.erb | 16 ---------------- app/views/layouts/application.html.haml | 12 ++++++++++++ app/views/layouts/mailer.html.erb | 13 ------------- app/views/layouts/mailer.html.haml | 8 ++++++++ app/views/layouts/mailer.text.erb | 1 - app/views/layouts/mailer.text.haml | 1 + 6 files changed, 21 insertions(+), 30 deletions(-) delete mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/application.html.haml delete mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.html.haml delete mode 100644 app/views/layouts/mailer.text.erb create mode 100644 app/views/layouts/mailer.text.haml diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb deleted file mode 100644 index c99f5b2..0000000 --- a/app/views/layouts/application.html.erb +++ /dev/null @@ -1,16 +0,0 @@ - - -
-