Package io.ktor.freemarker

Types

FreeMarker

class FreeMarker

Freemarker support feature. Provides ability to respond with FreeMarkerContent

FreeMarkerContent

class FreeMarkerContent

Represents a content handled by FreeMarker feature.

Functions

respondTemplate

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

Respond with the specified template passing model