scalive/example/src/RootLayout.scala

15 lines
313 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(
metaTag(charset := "utf-8"),
scriptTag(defer := true, typ := "text/javascript", src := "/static/app.js")
2025-08-20 01:31:10 +02:00
),
bodyTag(
2025-08-20 01:31:10 +02:00
content
)
)