ThymeleafContent

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

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