Package io.ktor.server.thymeleaf


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

A response content handled by the io.ktor.server.thymeleaf.Thymeleaf plugin.


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), locale: Locale = Locale.getDefault())

Respond with a template applying a data model.


Link copied to clipboard
val Thymeleaf: ApplicationPlugin<TemplateEngine>

A plugin that allows you to use Thymeleaf templates as views within your application. Provides the ability to respond with ThymeleafContent. You can learn more from Thymeleaf.