Package-level declarations
Types
Link copied to clipboard
object DefaultBlocks
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object KorteDefaultFilters
Link copied to clipboard
object KorteDefaultFunctions
Link copied to clipboard
object KorteDefaultTags
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class KorteFunction(val name: String, val eval: suspend KorteTemplate.EvalContext.(args: List<Any?>) -> Any?)
Link copied to clipboard
interface KorteNewTemplateProvider
Link copied to clipboard
Link copied to clipboard
data class KorteTag(val name: String, val nextList: Set<String>, val end: Set<String>?, val aliases: List<String> = listOf(), val buildNode: suspend KorteTag.BuildContext.() -> KorteBlock) : KorteDynamicContext
Link copied to clipboard
class KorteTemplate
Link copied to clipboard
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 })
Link copied to clipboard
open class KorteTemplateConfigWithTemplates(extraTags: List<KorteTag> = listOf(), extraFilters: List<KorteFilter> = listOf(), extraFunctions: List<KorteFunction> = listOf()) : KorteTemplateConfig
Link copied to clipboard
open class KorteTemplateContent(val text: String, val contentType: String? = null, val chunkProcessor: (String) -> String = { it })
Link copied to clipboard
Link copied to clipboard
open class KorteTemplates(var root: KorteNewTemplateProvider, var includes: KorteNewTemplateProvider = root, var layouts: KorteNewTemplateProvider = root, val config: KorteTemplateConfig = KorteTemplateConfig(), var cache: Boolean = true)
Link copied to clipboard
Link copied to clipboard
interface KorteTokenContext
Link copied to clipboard
Link copied to clipboard
typealias KorteWriteBlockExpressionResultFunction = suspend KorteTemplate.EvalContext.(value: Any?) -> Unit
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun KorteNewTemplateProvider(vararg map: Pair<String, KorteTemplateContent>): KorteNewTemplateProvider
Link copied to clipboard
suspend fun KorteTemplate(template: String, config: KorteTemplateConfig = KorteTemplateConfig()): KorteTemplate
suspend fun KorteTemplate(template: String, templates: KorteTemplates, includes: KorteNewTemplateProvider = templates.includes, layouts: KorteNewTemplateProvider = templates.layouts, config: KorteTemplateConfig = templates.config, cache: Boolean = templates.cache): KorteTemplate
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard