|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectplay.templates.TemplateLoader
public class TemplateLoader
Load templates
字段摘要 | |
---|---|
protected static java.util.Map<java.lang.String,BaseTemplate> |
templates
|
构造方法摘要 | |
---|---|
TemplateLoader()
|
方法摘要 | |
---|---|
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 java.lang.String |
getUniqueNumberForTemplateFile(java.lang.String path)
All loaded templates is cached in the templates-list using a key. |
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 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
protected static java.util.Map<java.lang.String,BaseTemplate> templates
构造方法详细信息 |
---|
public TemplateLoader()
方法详细信息 |
---|
public static java.lang.String getUniqueNumberForTemplateFile(java.lang.String path)
path
-
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()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |