JteContent
class JteContent(val template: String, val params: Map<String, Any?>, val etag: String? = null, val contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))
A response content handled by the Jte plugin.
Parameters
template
file name that is resolved by the Jte TemplateEngine
params
to be passed to the template
etag
value for the E-Tag
header (optional)
contentType
of response (optional, text/html
with UTF-8 character encoding by default)