Browse Source

turbo morph

pagy
pvincent 8 months ago
parent
commit
c5f3193d3c
  1. 5
      app/views/layouts/application.html.erb

5
app/views/layouts/application.html.erb

@ -8,12 +8,13 @@
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %> <%= javascript_importmap_tags %>
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
<%= content_for :head %>
</head> </head>
<body> <body>
<%=render '/layouts/notification' %> <%=render '/layouts/notification' %>
<main class="m-8 flex flex-col"> <main class="m-8 flex flex-col">
<%= yield %> <%= yield %>
</main> </main>

Loading…
Cancel
Save