Package-level declarations

Types

Link copied to clipboard
class HtmlContent(val status: HttpStatusCode? = null, builder: HTML.() -> Unit) : OutgoingContent.WriteChannelContent

Represents an OutgoingContent build using kotlinx.html.

Link copied to clipboard
open class Placeholder<TOuter>

A placeholder that is inserted inside TOuter.

Link copied to clipboard
class PlaceholderItem<TOuter>(val index: Int, val collection: List<PlaceholderItem<TOuter>>) : Placeholder<TOuter>

An item of a PlaceholderList when it is expanded.

Link copied to clipboard

A placeholder that can be used to insert the content that appears multiple times (for example, list items).

Link copied to clipboard
interface Template<in TOuter>

A template that expands inside TOuter.

Link copied to clipboard

A placeholder that is also a Template. It can be used to insert child templates and create nested layouts.

Functions

Link copied to clipboard

Inserts every element of PlaceholderList.

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

Responds to a client with an HTML response using the specified block to build an HTML page. You can learn more from HTML DSL.

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

Responds to a client with an HTML response built based on a specified template. You can learn more from HTML DSL.