Package-level declarations


Link copied to clipboard
class FreeMarkerContent(val template: String, val model: Any?, val etag: String? = null, val contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

A response content handled by the FreeMarker plugin.


Link copied to clipboard
val FreeMarker: ApplicationPlugin<Configuration>

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


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

Responds with the specified template and data model.