Package io.ktor.freemarker

Types

FreeMarker
Link copied to clipboard
class FreeMarker(config: Configuration)
Freemarker support feature.
FreeMarkerContent
Link copied to clipboard
class FreeMarkerContent(template: String, model: Any?, etag: String?, contentType: ContentType)
Represents a content handled by FreeMarker feature.

Functions

respondTemplate
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