Miguel
07/19/2021, 9:15 AMfun main(args: Array<String>): Unit = io.ktor.server.netty.EngineMain.main(args)
fun Application.module() {
install(FreeMarker) {
templateLoader = ClassTemplateLoader(this::class.java.classLoader, "templates")
outputFormat = HTMLOutputFormat.INSTANCE
}
routing {
static("/static") {
resources("files")
}
get("/") {
call.respond(FreeMarkerContent("index.ftl", mapOf("entries" to blogEntries), ""))
}
Is it safe to say there's no client? Is that even a thing?
Sorry for the long format, I'm a bit confused, if after reading this you are too, I can clarify it further.hfhbd
07/19/2021, 9:43 AMhtml
file with proper cache headers) from your server and split the logic between client and server. During a request, the client logic shows a proper waiting screen to the user (or better, do the requests in the background), while waiting for the new data (no HTML)Miguel
07/19/2021, 9:50 AMtddmonkey
07/19/2021, 10:11 AMMiguel
07/19/2021, 10:20 AMhfhbd
07/19/2021, 10:36 AMMiguel
07/19/2021, 10:56 AMtddmonkey
07/19/2021, 10:58 AMMiguel
07/19/2021, 11:26 AMcorneil
07/19/2021, 6:38 PMtddmonkey
07/20/2021, 8:39 AM