init(11): simplest scala scaffolding
This commit is contained in:
parent
fd75be6abe
commit
4475943a98
|
@ -0,0 +1,2 @@
|
||||||
|
version = "3.7.3"
|
||||||
|
runner.dialect = scala3
|
|
@ -0,0 +1,23 @@
|
||||||
|
//> using dep com.lihaoyi::cask:0.9.1
|
||||||
|
//> using dep com.lihaoyi::scalatags:0.12.0
|
||||||
|
|
||||||
|
package pricegrid
|
||||||
|
|
||||||
|
import scalatags.Text.all._
|
||||||
|
import scalatags.Text.tags2
|
||||||
|
|
||||||
|
object App extends cask.MainRoutes {
|
||||||
|
@cask.get("/")
|
||||||
|
def index() = doctype("html")(
|
||||||
|
html(
|
||||||
|
head(
|
||||||
|
tags2.title("Exercise 11")
|
||||||
|
),
|
||||||
|
body(
|
||||||
|
h1("Welcome to the future")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
initialize()
|
||||||
|
}
|
Loading…
Reference in New Issue