ThymeleafContent
class ThymeleafContent(template: String, model: Map<String, Any>, etag: String?, contentType: ContentType, locale: Locale, fragments: Set<String>)
Content copied to clipboard
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())
Content copied to clipboard