All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.port_templates.1.3.7.source-code.TemplatePort.kt Maven / Gradle / Ivy

There is a newer version: 1.4.7
Show newest version
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