ThymeleafContent

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

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
Link copied to clipboard
val etag: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard