play.templates
Class TemplateLoader

java.lang.Object
  extended by play.templates.TemplateLoader

public class TemplateLoader
extends java.lang.Object

Load templates


Field Summary
protected static java.util.Map<java.lang.String,Template> templates
           
 
Constructor Summary
TemplateLoader()
           
 
Method Summary
static void cleanCompiledCache()
           
static java.util.List<Template> getAllTemplate()
          List all found templates
static Template load(java.lang.String path)
          Load a template
static Template load(VirtualFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

templates

protected static java.util.Map<java.lang.String,Template> templates
Constructor Detail

TemplateLoader

public TemplateLoader()
Method Detail

load

public static Template load(VirtualFile file)

cleanCompiledCache

public static void cleanCompiledCache()

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


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly