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
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
A placeholder that is also a Template. It can be used to insert child templates and create nested layouts.
Functions
Link copied to clipboard
fun <TOuter, TInner> TOuter.each(items: PlaceholderList<TOuter, TInner>, itemTemplate: TOuter.(PlaceholderItem<TInner>) -> Unit)
Inserts every element of PlaceholderList.
Link copied to clipboard
Inserts Placeholder.
Link copied to clipboard
suspend fun ApplicationCall.respondHtml(status: HttpStatusCode = HttpStatusCode.OK, block: HTML.() -> Unit)
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.