|
||||||||||
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)
Deprecated. |
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 pathpublic 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
@Deprecated public static HtmlTemplate loadTemplate(java.lang.String strTemplateData, java.util.Locale locale, java.lang.Object rootMap)
strTemplateData
- The template as a stringlocale
- The Locale
rootMap
- the model root
public static void resetCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |