KorteTemplate

Types

Link copied to clipboard
data class BlockInTemplateEval(val name: String, val block: KorteBlock, val template: KorteTemplate.TemplateEvalContext)
Link copied to clipboard
Link copied to clipboard
class EvalContext(var currentTemplate: KorteTemplate.TemplateEvalContext, var scope: KorteTemplate.Scope, val config: KorteTemplateConfig, val mapper: KorteObjectMapper2, var write: suspend (str: String) -> Unit) : KorteDynamicContext
Link copied to clipboard
data class ExecResult(val context: KorteTemplate.EvalContext, val str: String)
Link copied to clipboard
class Macro(val name: String, val argNames: List<String>, val code: KorteBlock) : KorteTemplate.DynamicInvokable
Link copied to clipboard
class ParseContext(val template: KorteTemplate, val config: KorteTemplateConfig)
Link copied to clipboard
class Scope(val map: Any?, val mapper: KorteObjectMapper2, val parent: KorteTemplate.Scope? = null) : KorteDynamicContext
Link copied to clipboard
Link copied to clipboard
class TemplateEvalContext(val template: KorteTemplate)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var rootNode: KorteBlock
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addBlock(name: String, body: KorteBlock)
Link copied to clipboard
suspend fun init(): KorteTemplate
Link copied to clipboard
suspend operator fun invoke(hashMap: Any?, mapper: KorteObjectMapper2 = KorteMapper2): String
suspend operator fun invoke(vararg args: Pair<String, Any?>, mapper: KorteObjectMapper2 = KorteMapper2): String
Link copied to clipboard
suspend fun prender(args: Any?, mapper: KorteObjectMapper2 = KorteMapper2): KorteAsyncTextWriterContainer
suspend fun prender(vararg args: Pair<String, Any?>, mapper: KorteObjectMapper2 = KorteMapper2): KorteAsyncTextWriterContainer