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