ContextFreemarkerConfigurer

class ContextFreemarkerConfigurer extends Configurer
class Configurer
trait Initializing
class Object
trait Matchable
class Any

Value members

Concrete methods

override def createObjectWrapper(props: Map[String, String]): ObjectWrapper
Definition Classes
Configurer
override 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

Definition Classes
Configurer
override protected def detectTemplatePath(props: Map[String, String]): String
Definition Classes
Configurer

Inherited methods

def buildLoader(path: String): TemplateLoader
Inherited from:
Configurer
override def init(): Unit

do initialization.

do initialization.

Definition Classes
Configurer -> Initializing
Inherited from:
Configurer
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

Inherited from:
Configurer

Inherited fields

val config: Configuration
Inherited from:
Configurer
var contentType: String
Inherited from:
Configurer
var devMode: Boolean
Inherited from:
Configurer
var templatePath: String
Inherited from:
Configurer