KorteTemplates

open class KorteTemplates(var root: KorteNewTemplateProvider, var includes: KorteNewTemplateProvider = root, var layouts: KorteNewTemplateProvider = root, val config: KorteTemplateConfig = KorteTemplateConfig(), var cache: Boolean = true)

Constructors

Link copied to clipboard
constructor(root: KorteNewTemplateProvider, includes: KorteNewTemplateProvider = root, layouts: KorteNewTemplateProvider = root, config: KorteTemplateConfig = KorteTemplateConfig(), cache: Boolean = true)

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
open suspend fun get(name: String): KorteTemplate
Link copied to clipboard
open suspend fun getInclude(name: String): KorteTemplate
Link copied to clipboard
open suspend fun getLayout(name: String): KorteTemplate
Link copied to clipboard
Link copied to clipboard
suspend fun prender(name: String, args: Any?): KorteAsyncTextWriterContainer
suspend fun prender(name: String, vararg args: Pair<String, Any?>): KorteAsyncTextWriterContainer
Link copied to clipboard
suspend fun render(name: String, args: Any?): String
suspend fun render(name: String, vararg args: Pair<String, Any?>): String