public interface IFreeMarkerTemplateService
| Modifier and Type | Method and Description |
|---|---|
void |
addPluginMacros(String strFileName)
Adds a macro file (like the main commons.html) brought by a plugin.
|
String |
getAbsolutePathFromRelativePath(String strPath)
Get the absolute path from relative path
|
String |
getDefaultPattern(Locale locale)
Get the default date pattern
|
void |
init(String strTemplatePath)
Initializes the service with the templates's path
|
HtmlTemplate |
loadTemplate(String strTemplateData,
Locale locale,
Object rootMap)
Deprecated.
|
HtmlTemplate |
loadTemplate(String strPath,
String strTemplate)
Load a template
|
HtmlTemplate |
loadTemplate(String strPath,
String strTemplate,
Locale locale,
Object rootMap)
Load a template and process a model
|
void |
resetCache()
Reset the cache
|
void |
resetConfiguration()
Clears the configuration cache
|
void |
setSharedVariable(String name,
Object obj)
Add a shared variable into every template
|
void |
setTemplateUpdateDelay(int nTemplateUpdateDelay)
Set the template update delay
|
String getAbsolutePathFromRelativePath(String strPath)
strPath - the pathString getDefaultPattern(Locale locale)
locale - the localevoid setTemplateUpdateDelay(int nTemplateUpdateDelay)
nTemplateUpdateDelay - the template update delayvoid addPluginMacros(String strFileName)
strFileName - the filenamevoid setSharedVariable(String name, Object obj)
name - name of the shared variableobj - valuevoid init(String strTemplatePath)
strTemplatePath - The template pathHtmlTemplate loadTemplate(String strPath, String strTemplate)
strPath - the root pathstrTemplate - the path of the template from the root pathHtmlTemplate loadTemplate(String strPath, String strTemplate, Locale locale, Object rootMap)
strPath - the root pathstrTemplate - the path of the template from the root pathlocale - The localerootMap - the model root@Deprecated HtmlTemplate loadTemplate(String strTemplateData, Locale locale, Object rootMap)
strTemplateData - The template as a stringlocale - The LocalerootMap - the model rootvoid resetConfiguration()
void resetCache()
Copyright © 2014 Mairie de Paris. All rights reserved.