|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.templates.TemplateLoader
public class TemplateLoader
Load templates
| Field Summary | |
|---|---|
protected static Map<String,Template> |
templates
|
| Constructor Summary | |
|---|---|
TemplateLoader()
|
|
| Method Summary | |
|---|---|
static void |
cleanCompiledCache()
|
static List<Template> |
getAllTemplate()
List all found templates |
static Template |
load(String path)
Load a template |
static Template |
load(String key,
String source)
Load a template from a String |
static Template |
load(VirtualFile file)
Load a template from a virtual file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<String,Template> templates
| Constructor Detail |
|---|
public TemplateLoader()
| Method Detail |
|---|
public static Template load(VirtualFile file)
file - A VirtualFile
public static Template load(String key,
String source)
key - A unique identifier for the template, used for retreiving a cached templatesource - The template source, leave as null, if you want to get the cached template
public static void cleanCompiledCache()
public static Template load(String path)
path - The path of the template (ex: Application/index.html)
public static List<Template> getAllTemplate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||