mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 13:36:59 +01:00
Basic zio-http based live router
This commit is contained in:
parent
cff02a4c96
commit
385436f8fe
6 changed files with 80 additions and 96 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue