All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.port_templates.1.3.13.source-code.TemplateEngineSettings.kt Maven / Gradle / Ivy

There is a newer version: 1.4.7
Show newest version
package com.hexagonkt.templates

import java.io.Reader

/**
 * TemplateEngineSettings are used to configure a [TemplateEngine]
 *
 * @param loader loads templates
 * @param loadContext if enabled, properties are loaded from the classpath
 * @param basePath appended to resource name, i. e. "templates/resource"
 */
data class TemplateEngineSettings(
    val loader: ((resource: String) -> Reader?)? = null,
    val loadContext: Boolean = true,
    val basePath: String? = null
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy