KorteTemplateConfig
open class KorteTemplateConfig(extraTags: List<KorteTag> = listOf(), extraFilters: List<KorteFilter> = listOf(), extraFunctions: List<KorteFunction> = listOf(), var unknownFilter: KorteFilter = KorteFilter("unknown") { tok.exception("Unknown filter '$name'") }, val autoEscapeMode: KorteAutoEscapeMode = KorteAutoEscapeMode.HTML, val contentTypeProcessor: (content: String, contentType: String?) -> String = { content, _ -> content })
Inheritors
Constructors
Link copied to clipboard
constructor(extraTags: List<KorteTag> = listOf(), extraFilters: List<KorteFilter> = listOf(), extraFunctions: List<KorteFunction> = listOf(), unknownFilter: KorteFilter = KorteFilter("unknown") { tok.exception("Unknown filter '$name'") }, autoEscapeMode: KorteAutoEscapeMode = KorteAutoEscapeMode.HTML, contentTypeProcessor: (content: String, contentType: String?) -> String = { content, _ -> content })
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun replaceVariablePocessor(func: suspend KorteTemplate.EvalContext.(name: String, KorteVariableProcessor) -> Any?)
Link copied to clipboard
fun replaceWriteBlockExpressionResult(func: suspend KorteTemplate.EvalContext.(value: Any?, KorteWriteBlockExpressionResultFunction) -> Unit)