Package io.ktor.mustache

Types

Mustache

class Mustache

Feature for providing Mustache templates as MustacheContent

MustacheContent

class MustacheContent

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

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