Package io.ktor.pebble
Types
Link copied to clipboard
Feature for providing Pebble templates as PebbleContent
Link copied to clipboard
class PebbleContent(template: String, model: Map<String, Any>, locale: Locale?, etag: String?, contentType: ContentType)
Content copied to clipboard
Response content which could be used to respond ApplicationCalls like `call.respond(PebbleContent(...))
Functions
Link copied to clipboard
suspend fun ApplicationCall.respondTemplate(template: String, model: Map<String, Any>, locale: Locale? = null, etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(
Charsets.UTF_8
))
Content copied to clipboard