Package io.ktor.server.mustache


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

A response content handled by the Mustache plugin.


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 ))

Responds with the specified template passing a data model.


Link copied to clipboard
val Mustache: ApplicationPlugin<MustacheConfig>

A plugin that allows you to use Mustache templates as views within your application. Provides the ability to respond with MustacheContent. You can learn more from Mustache.