VelocityContent
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.
Parameters
template
name to be resolved by Velocity
model
to be passed during template rendering
etag
value for the E-Tag
header (optional)
contentType
of response (optional, text/html
with the UTF-8 character encoding by default)
Constructors
Link copied to clipboard
fun VelocityContent(template: String, model: Map<String, Any>, etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))