Package-level declarations

Types

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

A response content handled by the io.ktor.server.velocity.Velocity plugin.

Properties

Link copied to clipboard
val Velocity: ApplicationPlugin<VelocityEngine>

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

Link copied to clipboard
val VelocityTools: ApplicationPlugin<EasyFactoryConfiguration>

A plugin that allows you to add standard and custom Velocity tools. You can learn more from Velocity.

Functions

Link copied to clipboard
fun EasyFactoryConfiguration.engine(configure: VelocityEngine.() -> Unit)
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))

Responds with the specified template and data model.