Configurer

@description("Freemarker配置提供者") class Configurer extends Initializing
Companion
object
trait Initializing
class Object
trait Matchable
class Any

Value members

Concrete methods

def buildLoader(path: String): TemplateLoader
def createObjectWrapper(props: Map[String, String]): ObjectWrapper
def createTemplateLoader(props: Map[String, String]): TemplateLoader

The default template loader is a MultiTemplateLoader which includes BeangleClassTemplateLoader(classpath:) and a WebappTemplateLoader (webapp:) and FileTemplateLoader(file:) . All template path described in init parameter templatePath or TemplatePlath

The default template loader is a MultiTemplateLoader which includes BeangleClassTemplateLoader(classpath:) and a WebappTemplateLoader (webapp:) and FileTemplateLoader(file:) . All template path described in init parameter templatePath or TemplatePlath

The ClassTemplateLoader will resolve fully qualified template includes that begin with a slash. for example /com/company/template/common.ftl

override def init(): Unit
Definition Classes
Initializing
def properties: Map[String, String]

Load the multi settings from the /META-INF/freemarker.properties and /freemarker.properties file on the classpath

Load the multi settings from the /META-INF/freemarker.properties and /freemarker.properties file on the classpath

See also

freemarker.template.Configuration#setSettings for the definition of valid settings

Concrete fields

val config: Configuration
var contentType: String
var devMode: Boolean
var templatePath: String