init(11): simplest scala scaffolding

This commit is contained in:
efim 2023-06-26 06:34:09 +00:00
parent fd75be6abe
commit 4475943a98
3 changed files with 25 additions and 0 deletions

View File

View File

@ -0,0 +1,2 @@
version = "3.7.3"
runner.dialect = scala3

View File

@ -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()
}