.port_templates.1.3.7.source-code.TemplatePort.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of port_templates Show documentation
Show all versions of port_templates Show documentation
The atoms of your platform
package com.hexagonkt.templates
import java.util.*
/**
* TODO Add code to test templates (check unresolved variables in bundles, multi-language, etc.)
*/
interface TemplatePort {
fun render (resource: String, locale: Locale, context: Map): String =
render(resource, locale, context, TemplateEngineSettings())
fun render (resource: String, locale: Locale, vararg context: Pair): String =
render(resource, locale, linkedMapOf(*context))
fun render(
resource: String,
locale: Locale,
context: Map,
settings: TemplateEngineSettings
): String
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy