Package play.templates
Class TemplateLoader
- java.lang.Object
-
- play.templates.TemplateLoader
-
public class TemplateLoader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TemplateLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanCompiledCache()Cleans the cache for all templatesstatic java.util.List<Template>getAllTemplate()List all found templatesstatic Templateload(java.lang.String path)Load a templatestatic Templateload(VirtualFile file)Load a template from a virtual file
-
-
-
Method Detail
-
load
public static Template load(VirtualFile file)
Load a template from a virtual file- Parameters:
file- A VirtualFile- Returns:
- The executable template
-
cleanCompiledCache
public static void cleanCompiledCache()
Cleans the cache for all templates
-
load
public static Template load(java.lang.String path)
Load a template- Parameters:
path- The path of the template (ex: Application/index.html)- Returns:
- The executable template
-
getAllTemplate
public static java.util.List<Template> getAllTemplate()
List all found templates- Returns:
- A list of executable templates
-
-