Package io.ktor.pebble

Types

Pebble

class Pebble

Feature for providing Pebble templates as PebbleContent

PebbleContent

class PebbleContent

Response content which could be used to respond ApplicationCalls like `call.respond(PebbleContent(…))

Functions

respondTemplate

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

Respond with the specified template passing model