site_template/app/views/layouts/error.rb in staticky-0.2.0 vs site_template/app/views/layouts/error.rb in staticky-0.3.0

- old
+ new

@@ -1,13 +1,11 @@ # frozen_string_literal: true module Layouts - class Error < Layout - def view_template(&block) - render Layouts::Site.new do - div(class: "grid place-items-center h-[--main-scene]") do - section(class: "flex flex-col place-items-center gap-sm", &block) - end + class Error < Site + def view_template(&) + div(class: "grid place-items-center h-[--main-scene]") do + section(class: "flex flex-col place-items-center gap-sm", &) end end end end