Package io.ktor.server.pebble

Types

Link copied to clipboard
class PebbleContent(template: String, model: Map<String, Any>, locale: Locale?, etag: String?, contentType: ContentType)

A response content handled by the Pebble plugin.

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

Responds with the specified template passing a data model.

Properties

Link copied to clipboard
val Pebble: ApplicationPlugin<PebbleEngine.Builder>

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