FreeMarkerContent

class FreeMarkerContent(template: String, model: Any?, etag: String?, contentType: ContentType)

A response content handled by the FreeMarker plugin.

Parameters

template

name that is resolved by FreeMarker

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 FreeMarkerContent(template: String, model: Any?, etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

Properties

Link copied to clipboard
val contentType: ContentType
Link copied to clipboard
val etag: String? = null
Link copied to clipboard
val model: Any?
Link copied to clipboard
val template: String