Extensions for io.ktor.application.ApplicationCall

respondHtml

suspend fun ApplicationCall.respondHtml(
    status: HttpStatusCode = HttpStatusCode.OK,
    block: HTML.() -> Unit
): Unit

Responds to a client with a HTML response, using specified block to build an HTML page

respondHtmlTemplate

suspend fun <TTemplate : Template<HTML>> ApplicationCall.respondHtmlTemplate(
    template: TTemplate,
    status: HttpStatusCode = HttpStatusCode.OK,
    body: TTemplate.() -> Unit
): Unit