Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class KorteAutoEscapeMode(val transform: (String) -> String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class KorteException(val msg: String, val context: KorteFilePosContext) : RuntimeException
Link copied to clipboard
Link copied to clipboard
data class KorteFileContext(val fileName: String, val fileContent: String)
Link copied to clipboard
data class KorteFilePosContext(val file: KorteFileContext, val pos: Int)
Link copied to clipboard
data class KorteFilter(val name: String, val eval: suspend KorteFilter.Ctx.() -> Any?)
Link copied to clipboard
data class KorteFunction(val name: String, val eval: suspend KorteTemplate.EvalContext.(args: List<Any?>) -> Any?)
Link copied to clipboard
Link copied to clipboard
class KorteRawString(val str: String, val contentType: String? = null)
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
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
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
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun KorteTemplateProvider.getSure(template: String): String
Link copied to clipboard
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