Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class MustacheContent(val template: String, val model: Any?, val etag: String? = null, val contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

A response content handled by the Mustache plugin.

Properties

Link copied to clipboard

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.

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

Responds with the specified template passing a data model.