Skip to content

Commit

Permalink
Use HAML instead of erb
Browse files Browse the repository at this point in the history
  • Loading branch information
noracato committed Oct 11, 2024
1 parent 1f31df1 commit 29d34ee
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 23 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ gem "jbuilder"
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Views
gem 'haml'

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ windows jruby ]

Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ GEM
erubi (1.13.0)
globalid (1.2.1)
activesupport (>= 6.1)
haml (6.3.0)
temple (>= 0.8.2)
thor
tilt
i18n (1.14.6)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.2)
Expand Down Expand Up @@ -258,7 +262,9 @@ GEM
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.1.1)
temple (0.10.3)
thor (1.3.2)
tilt (2.3.0)
timeout (0.4.1)
turbo-rails (2.0.10)
actionpack (>= 6.0.0)
Expand Down Expand Up @@ -290,6 +296,7 @@ DEPENDENCIES
bootsnap
brakeman
debug
haml
importmap-rails
jbuilder
mysql2 (~> 0.5)
Expand Down
23 changes: 0 additions & 23 deletions app/views/layouts/application.html.erb

This file was deleted.

18 changes: 18 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
!!! 5
%html{:lang => 'en'}
%head
%title= content_for(:title) || "ETM"
%meta{ name: "viewport", content: "width=device-width,initial-scale=1"}
%meta{ name: "apple-mobile-web-app-capable", content: "yes"}
= csrf_meta_tags
= csp_meta_tag
= yield :head
%link{ rel:"manifest", href:"/manifest.json" }
= stylesheet_link_tag "application", "data-turbo-track": "reload"
= javascript_importmap_tags
%body
= yield

0 comments on commit 29d34ee

Please sign in to comment.