Package io.ktor.velocity

Types

Velocity

class Velocity

Velocity ktor feature. Provides ability to respond with VelocityContent and respondTemplate.

VelocityContent

class VelocityContent

Represents a response content that could be used to respond with call.respond(VelocityContent(...))

Functions

respondTemplate

suspend fun ApplicationCall.respondTemplate(
    template: String,
    model: Map<String, Any> = emptyMap(),
    etag: String? = null,
    contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8)
): Unit

Respond with template applying model