ThymeleafContent

class ThymeleafContent(template: String, model: Map<String, Any>, etag: String?, contentType: ContentType, locale: Locale, fragments: Set<String>)

A response content handled by the io.ktor.server.thymeleaf.Thymeleaf plugin.

Parameters

template

name that is resolved by Thymeleaf

model

to be passed during template rendering

etag

value for the E-Tag header (optional)

contentType

of response (optional, text/html with UTF-8 character encoding by default)

locale

object represents a specific geographical, political, or cultural region

fragments

names from the template that is resolved by Thymeleaf

Constructors

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

Properties

Link copied to clipboard
val contentType: ContentType
Link copied to clipboard
val etag: String? = null
Link copied to clipboard
val fragments: Set<String>
Link copied to clipboard
val locale: Locale
Link copied to clipboard
val model: Map<String, Any>
Link copied to clipboard
val template: String