Package io.ktor.mustache

Types

Link copied to clipboard
class Mustache(configuration: Mustache.Configuration)

Feature for providing Mustache templates as MustacheContent

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

Response content which could be used to respond ApplicationCalls like `call.respond(MustacheContent(...))

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