render
fun render( url: URL, context: Map<String, *>, locale: Locale = Jvm.locale): String
Content copied to clipboard
Render a template with a registered template engine.
Parameters
url
Location of the template.
context
Data to use when the template is processed.
locale
Locale used to process the template. If not passed, system's locale is used.
Throws
kotlin.IllegalStateException
Thrown when no engine for URL was found.