|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.templates.TemplateLoader
public class TemplateLoader
Load templates
Field Summary | |
---|---|
protected static java.util.Map<java.lang.String,BaseTemplate> |
templates
|
Constructor Summary | |
---|---|
TemplateLoader()
|
Method Summary | |
---|---|
static void |
cleanCompiledCache()
Cleans the cache for all templates |
static void |
cleanCompiledCache(java.lang.String key)
Cleans the specified key from the cache |
static java.util.List<Template> |
getAllTemplate()
List all found templates |
static Template |
load(java.lang.String path)
Load a template |
static BaseTemplate |
load(java.lang.String key,
java.lang.String source)
Load a template from a String |
static BaseTemplate |
load(java.lang.String key,
java.lang.String source,
boolean reload)
Clean the cache for that key Then load a template from a String |
static Template |
load(VirtualFile file)
Load a template from a virtual file |
static BaseTemplate |
loadString(java.lang.String source)
Load template from a String, but don't cache it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.Map<java.lang.String,BaseTemplate> templates
Constructor Detail |
---|
public TemplateLoader()
Method Detail |
---|
public static Template load(VirtualFile file)
file
- A VirtualFile
public static BaseTemplate load(java.lang.String key, java.lang.String source)
key
- A unique identifier for the template, used for retreiving a cached templatesource
- The template source
public static BaseTemplate load(java.lang.String key, java.lang.String source, boolean reload)
key
- A unique identifier for the template, used for retreiving a cached templatesource
- The template source
public static BaseTemplate loadString(java.lang.String source)
source
- The template source
public static void cleanCompiledCache()
public static void cleanCompiledCache(java.lang.String key)
key
- The template keypublic static Template load(java.lang.String path)
path
- The path of the template (ex: Application/index.html)
public static java.util.List<Template> getAllTemplate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |