ContextFreemarkerConfigurer

org.beangle.webmvc.freemarker.ContextFreemarkerConfigurer
class ContextFreemarkerConfigurer extends Configurer

Attributes

Graph
Supertypes
class Configurer
trait Initializing
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def createObjectWrapper(props: Map[String, String]): ObjectWrapper

Attributes

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

Attributes

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

Attributes

Definition Classes
Configurer

Inherited methods

def buildLoader(path: String): TemplateLoader

Attributes

Inherited from:
Configurer
override def init(): Unit

do initialization.

do initialization.

Attributes

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

Attributes

See also:

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

Inherited from:
Configurer

Inherited fields

val config: Configuration

Attributes

Inherited from:
Configurer
var contentType: String

Attributes

Inherited from:
Configurer
var devMode: Boolean

Attributes

Inherited from:
Configurer
var templatePath: String

Attributes

Inherited from:
Configurer