Package io.ktor.server.velocity

Types

Link copied to clipboard
class Velocity

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

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

Represents a response content that could be used to respond with call.respond(VelocityContent(...))

Link copied to clipboard
class VelocityTools

VelocityTools ktor plugin. Populates model with standard Velocity tools.

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))

Respond with template applying model