|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.app.template.TemplateManager
A simple FreeMarker template manager. This class provides static methods that simplify the creation of templates.
| Constructor Summary | |
TemplateManager()
|
|
| Method Summary | |
static java.lang.String |
getBuildDate()
Returns the application build date. |
static java.lang.String |
getBuildVersion()
Returns the application build version. |
static Template |
getFileTemplate(java.lang.String path)
Returns a template from the file system. |
static Template |
getPageTemplate(User user,
ContentPage page)
Returns a template from a content page. |
static void |
initialize(java.io.File baseDir,
java.lang.String version,
java.lang.String date)
Initializes the template manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TemplateManager()
| Method Detail |
public static void initialize(java.io.File baseDir,
java.lang.String version,
java.lang.String date)
throws TemplateException
baseDir - the application base directoryversion - the application version numberdate - the application version date
TemplateException - if the template base directory
couldn't be read properlypublic static java.lang.String getBuildVersion()
public static java.lang.String getBuildDate()
public static Template getFileTemplate(java.lang.String path)
throws TemplateException
path - the relative file name
TemplateException - if the template couldn't be read
correctly
public static Template getPageTemplate(User user,
ContentPage page)
throws TemplateException
user - the user performing the operationpage - the content page
TemplateException - if the template couldn't be read
correctly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||