Package io.ktor.thymeleaf

Types

Link copied to clipboard
class Thymeleaf(engine: TemplateEngine)

Thymeleaf support feature. Provides ability to respond with Thymeleaf

Link copied to clipboard
class ThymeleafContent(template: String, model: Map<String, Any>, etag: String?, contentType: ContentType)

Represents a content handled by Thymeleaf feature.

Functions

Link copied to clipboard
suspend fun ApplicationCall.respondTemplate(template: String, model: Map<String, Any> = emptyMap(), etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

Respond with template applying model