Package io.ktor.mustache
Types
Link copied to clipboard
Feature for providing Mustache templates as MustacheContent
Link copied to clipboard
class MustacheContent(template: String, model: Any?, etag: String?, contentType: ContentType)
Content copied to clipboard
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
))
Content copied to clipboard