Package io.ktor.freemarker

Types

Link copied to clipboard
class FreeMarker(config: Configuration)

Freemarker support feature. Provides ability to respond with FreeMarkerContent

Link copied to clipboard
class FreeMarkerContent(template: String, model: Any?, etag: String?, contentType: ContentType)

Represents a content handled by FreeMarker feature.

Functions

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

Respond with the specified template passing model