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