webit.script.loaders.Loader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webit-script Show documentation
Show all versions of webit-script Show documentation
a template-like script and engine, all writen with Java.
The newest version!
// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script.loaders;
public interface Loader {
/**
* get template's Resource by it's name.
*
* @param name template's name
* @return Resource
*/
Resource get(String name);
/**
* get child template name by parent template name and relative name.
*
* @param parent parent template's name
* @param name relative name
* @return child template's name
*/
String concat(String parent, String name);
/**
* normalize a template's name.
*
* @param name template's name
* @return normalized name
*/
String normalize(String name);
/**
* if this template need to be cached.
*
* @param name template's name
* @return boolean
*/
boolean isEnableCache(String name);
}