public class FreeMarkerEngine
extends spark.TemplateEngine
setConfiguration(Configuration)
method.
If no configuration is set the default configuration will be used where ftl
files need to be put in directory resources/template/freemarker.Constructor and Description |
---|
FreeMarkerEngine()
Creates a FreeMarkerEngine
|
FreeMarkerEngine(freemarker.template.Configuration configuration)
Creates a FreeMarkerEngine with the specified configuration
|
Modifier and Type | Method and Description |
---|---|
String |
render(spark.ModelAndView modelAndView) |
void |
setConfiguration(freemarker.template.Configuration configuration)
Deprecated.
|
public FreeMarkerEngine()
public FreeMarkerEngine(freemarker.template.Configuration configuration)
configuration
- The Freemarker configurationpublic String render(spark.ModelAndView modelAndView)
render
in class spark.TemplateEngine
@Deprecated public void setConfiguration(freemarker.template.Configuration configuration)
configuration
- the configuration to setCopyright © 2017. All Rights Reserved.