|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.astroshare.astroonline.core.Template
public class Template
Implementation of the Astro-Online templates.
Templating is implemented with the Freemarker framework. Freemarker classes are only called from this class. The templates are stored under the template folder under WEB-INF.
| Field Summary | |
|---|---|
static freemarker.template.Configuration |
adm
Freemarker configuration for admin templates |
static freemarker.template.Configuration |
cfg
Freemarker configuration for application templates |
static freemarker.template.Configuration |
ins
Freemarker configuration for install templates |
| Constructor Summary | |
|---|---|
Template()
|
|
| Method Summary | |
|---|---|
static void |
clearCache()
Clear template cache. |
java.lang.String |
getAdminTemplate(java.lang.String templateName,
java.util.Map<?,?> vars)
Method returns admin template. |
java.lang.String |
getInstallTemplate(java.lang.String templateName,
java.util.Map<?,?> vars)
Method returns install template. |
java.lang.String |
getTemplate(java.lang.String templateName,
java.lang.String templateLanguage,
java.util.Map<?,?> vars)
Method returns application template. |
static void |
init(javax.servlet.ServletConfig config)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static freemarker.template.Configuration cfg
public static freemarker.template.Configuration adm
public static freemarker.template.Configuration ins
| Constructor Detail |
|---|
public Template()
| Method Detail |
|---|
public static void init(javax.servlet.ServletConfig config)
public java.lang.String getTemplate(java.lang.String templateName,
java.lang.String templateLanguage,
java.util.Map<?,?> vars)
Method returns application template.
templateName - Name of the templatetemplateLanguage - Language of the templatevars - Variables used to process the template
public java.lang.String getAdminTemplate(java.lang.String templateName,
java.util.Map<?,?> vars)
Method returns admin template.
templateName - Name of the templatevars - Variables used to process the template
public java.lang.String getInstallTemplate(java.lang.String templateName,
java.util.Map<?,?> vars)
Method returns install template.
templateName - Name of the templatevars - Variables used to process the templatepublic static void clearCache()
Clear template cache.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)