scalive/example/src/RootLayout.scala

17 lines
461 B
Scala
Raw Normal View History

import scalive.*
object RootLayout:
2025-08-20 01:31:10 +02:00
def apply(content: HtmlElement): HtmlElement =
htmlRootTag(
lang := "en",
2025-08-20 01:31:10 +02:00
headTag(
2025-08-27 03:09:14 +02:00
metaTag(charset := "utf-8"),
metaTag(nameAttr := "viewport", contentAttr := "width=device-width, initial-scale=1"),
scriptTag(defer := true, typ := "text/javascript", src := "/static/app.js"),
titleTag("Scalive Example")
2025-08-20 01:31:10 +02:00
),
bodyTag(
2025-08-20 01:31:10 +02:00
content
)
)