|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.template.FreeMarkerTemplateService
public final class FreeMarkerTemplateService
Template service based on the Freemarker template engine
| Method Summary | |
|---|---|
static void |
init(java.lang.String strTemplatePath)
Initializes the service with the templates's path |
static HtmlTemplate |
loadTemplate(java.lang.String strTemplateData,
java.util.Locale locale,
java.lang.Object rootMap)
Load a template from a String and process a model WARNING : This method must not be used in front office (no cache management available). |
static HtmlTemplate |
loadTemplate(java.lang.String strPath,
java.lang.String strTemplate)
Load a template |
static HtmlTemplate |
loadTemplate(java.lang.String strPath,
java.lang.String strTemplate,
java.util.Locale locale,
java.lang.Object rootMap)
Load a template and process a model |
static void |
resetCache()
Reset the cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init(java.lang.String strTemplatePath)
strTemplatePath - The template path
public static HtmlTemplate loadTemplate(java.lang.String strPath,
java.lang.String strTemplate)
strPath - the root pathstrTemplate - the path of the template from the root path
public static HtmlTemplate loadTemplate(java.lang.String strPath,
java.lang.String strTemplate,
java.util.Locale locale,
java.lang.Object rootMap)
strPath - the root pathstrTemplate - the path of the template from the root pathlocale - The localerootMap - the model root
public static HtmlTemplate loadTemplate(java.lang.String strTemplateData,
java.util.Locale locale,
java.lang.Object rootMap)
strTemplate - the path of the template from the root pathlocale - The LocalerootMap - the model root
public static void resetCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||