TemplateEvalContext

class TemplateEvalContext(val template: KorteTemplate)

Constructors

Link copied to clipboard
constructor(template: KorteTemplate)

Types

Link copied to clipboard
class WithArgs(val context: KorteTemplate.TemplateEvalContext, val args: Any?, val mapper: KorteObjectMapper2, val parentScope: KorteTemplate.Scope? = null) : KorteAsyncTextWriterContainer

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun eval(context: KorteTemplate.EvalContext)
Link copied to clipboard
suspend fun exec(args: Any?, mapper: KorteObjectMapper2 = KorteMapper2, parentScope: KorteTemplate.Scope? = null): KorteTemplate.ExecResult
suspend fun exec(vararg args: Pair<String, Any?>, mapper: KorteObjectMapper2 = KorteMapper2, parentScope: KorteTemplate.Scope? = null): KorteTemplate.ExecResult
Link copied to clipboard
suspend fun exec2(args: Any?, mapper: KorteObjectMapper2, parentScope: KorteTemplate.Scope? = null, writer: suspend (String) -> Unit): KorteTemplate.EvalContext
Link copied to clipboard
Link copied to clipboard
suspend operator fun invoke(args: Any?, mapper: KorteObjectMapper2 = KorteMapper2, parentScope: KorteTemplate.Scope? = null): String
suspend operator fun invoke(vararg args: Pair<String, Any?>, mapper: KorteObjectMapper2 = KorteMapper2, parentScope: KorteTemplate.Scope? = null): String
Link copied to clipboard
fun withArgs(args: Any?, mapper: KorteObjectMapper2 = KorteMapper2, parentScope: KorteTemplate.Scope? = null): KorteTemplate.TemplateEvalContext.WithArgs