summaryrefslogtreecommitdiff
path: root/examples/crossBuilds/clientserver/server/src/main/scala/simple/Page.scala
blob: d6572900551a5956871e5b677801dd2993095e3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package simple
import scalatags.Text.all._

object Page{
  val boot =
    "Client().main(document.getElementById('contents'))"
  val skeleton =
    html(
      head(
        script(src:="/client-fastopt.js"),
        link(
          rel:="stylesheet",
          href:="https://cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css"
        )
      ),
      body(
        onload:=boot,
        div(id:="contents")
      )
    )
}