Package-level declarations

Types

Link copied to clipboard
class PebbleConfiguration : PebbleEngine.Builder

Configuration for the Pebble plugin.

Link copied to clipboard
class PebbleContent(val template: String, val model: Map<String, Any>, val locale: Locale? = null, val etag: String? = null, val contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

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

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.