2021-05-01 23:02:08 +02:00
|
|
|
abstract class MainLayout
|
|
|
|
include Lucky::HTMLPage
|
|
|
|
|
|
|
|
abstract def content
|
|
|
|
abstract def page_title
|
|
|
|
|
|
|
|
def page_title
|
|
|
|
"Welcome"
|
|
|
|
end
|
|
|
|
|
|
|
|
def render
|
|
|
|
html_doctype
|
|
|
|
|
|
|
|
html lang: "en" do
|
2021-12-12 18:01:55 +01:00
|
|
|
mount Shared::LayoutHead, page_title: page_title
|
2021-05-01 23:02:08 +02:00
|
|
|
|
|
|
|
body do
|
|
|
|
mount Shared::FlashMessages, context.flash
|
|
|
|
content
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2021-10-23 21:34:13 +02:00
|
|
|
|
|
|
|
private def app_domain
|
|
|
|
URI.parse(Home::Index.url).normalize
|
|
|
|
.to_s
|
|
|
|
.sub(/\/$/, "")
|
|
|
|
.sub(/^https?:\/\//, "")
|
|
|
|
end
|
2021-05-01 23:02:08 +02:00
|
|
|
end
|