Package io.ktor.pebble

Types

Link copied to clipboard
class Pebble(engine: PebbleEngine)

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)

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

Respond with the specified template passing model