PebbleContent

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.

Report a problem

Parameters

template

name of the template to be resolved by Pebble

model

which is passed into the template

locale

which is used to resolve templates (optional)

etag

value for E-Tag header (optional)

contentType

response's content type which is set to text/html;charset=utf-8 by default

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
val etag: String? = null
Link copied to clipboard
val locale: Locale? = null
Link copied to clipboard
Link copied to clipboard