Basic zio-http based live router

This commit is contained in:
Paul-Henri Froidmont 2025-08-20 01:31:10 +02:00
parent cff02a4c96
commit 385436f8fe
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
6 changed files with 80 additions and 96 deletions

View file

@ -3,11 +3,13 @@ package scalive
import scalive.HtmlElement
object RootLayout:
def apply[RootModel](content: HtmlElement): HtmlElement =
def apply(content: HtmlElement): HtmlElement =
htmlRootTag(
lang := "en",
metaTag(charset := "utf-8"),
headTag(
metaTag(charset := "utf-8")
),
bodyTag(
// content
content
)
)