public interface ITemplateResourceLoader
| Modifier and Type | Method and Description |
|---|---|
RythmEngine |
getEngine() |
String |
getResourceLoaderRoot()
Return root path of this resource loader
|
ITemplateResource |
load(String path)
Load template resource by path
|
void |
scan(TemplateResourceManager manager)
Scan the folder and try to load all template files under the folder.
|
void |
setEngine(RythmEngine engine) |
TemplateClass |
tryLoadTemplate(String tmplName,
RythmEngine engine,
TemplateClass callerClass,
ICodeType codeType)
Try to load a template tag with tag name.
|
void setEngine(RythmEngine engine)
RythmEngine getEngine()
String getResourceLoaderRoot()
ITemplateResource load(String path)
path - TemplateClass tryLoadTemplate(String tmplName, RythmEngine engine, TemplateClass callerClass, ICodeType codeType)
tmplName - engine - caller - void scan(TemplateResourceManager manager)
resource manager by
TemplateResourceManager.resourceLoaded(ITemplateResource) call
Note it is up to the loader implementation to decide the root path where to start the scan
manager - the resource managerCopyright © 2016. All Rights Reserved.