FreeMarkerContent

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

Represents a content handled by FreeMarker feature.

Parameters

template

name that is resolved by freemarker

model

to be passed during template rendering

etag

value for E-Tag header (optional)

contentType

of response (optional, text/html with UTF-8 character encoding by default)

Constructors

FreeMarkerContent
Link copied to clipboard
fun FreeMarkerContent(template: String, model: Any?, etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))
name that is resolved by freemarker

Properties

contentType
Link copied to clipboard
val contentType: ContentType
of response (optional, text/html with UTF-8 character encoding by default)
etag
Link copied to clipboard
val etag: String? = null
value for E-Tag header (optional)
model
Link copied to clipboard
val model: Any?
to be passed during template rendering
template
Link copied to clipboard
val template: String
name that is resolved by freemarker