app/views/layouts/lookbook/embed.html.erb in lookbook-2.3.4 vs app/views/layouts/lookbook/embed.html.erb in lookbook-3.0.0.alpha.0

- old
+ new

@@ -1,34 +1,7 @@ <% content_for :body do %> - <% if request_frame == "root" %> - <div - id="app" - x-data="app" - x-cloak - x-on:popstate.window="handleNavigation" - x-on:click.document="hijax" - class="overflow-hidden"> - - <%= render "lookbook/partials/user_styles" %> - - <div id="app-main" class="contents"> - <%= content_for?(:main) ? yield(:main) : yield %> - </div> - </div> - - <% if content_for? :dropdowns %> - <div class="hidden"> - <%= content_for :dropdowns -%> - </div> - <% end %> - <% elsif request_frame == "main" %> - <div id="app-main"> - <%= content_for?(:main) ? yield(:main) : yield %> - </div> - <% end %> + <%= render Lookbook::UI::Router.new do %> + <%= yield %> + <% end %> <% end %> -<% if frame_request? %> - <%= yield :body %> -<% else %> - <%= render template: "layouts/lookbook/skeleton" %> -<% end %> +<%= render template: "layouts/lookbook/skeleton" %> \ No newline at end of file