|
||||||||||
| 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 |
addPluginMacros(java.lang.String strFileName)
Adds a macro file (like the main commons.html) brought by a plugin. |
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 |
static void |
resetConfiguration()
Clears the configuration cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addPluginMacros(java.lang.String strFileName)
strFileName - the filenamepublic 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
@Deprecated
public static HtmlTemplate loadTemplate(java.lang.String strTemplateData,
java.util.Locale locale,
java.lang.Object rootMap)
strTemplateData - The template as a stringlocale - The LocalerootMap - the model root
public static void resetConfiguration()
public static void resetCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||