Package-level declarations


Link copied to clipboard
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.


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.


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.