cn.featherfly.hammer.tpl.TemplateEngine Maven / Gradle / Ivy
package cn.featherfly.hammer.tpl;
import java.util.Map;
import cn.featherfly.hammer.tpl.directive.TemplateDirective;
import cn.featherfly.hammer.tpl.method.TemplateMethod;
/**
*
* TemplateEngine
*
*
* @author zhongj
*/
public interface TemplateEngine, D extends TemplateDirective,
M extends TemplateMethod> {
/**
*
* create template and process
*
*
* @param templateName templateName
* @param sourceCode sourceCode
* @param params params
* @param templateEnv templateEnv
* @return template processed result
*/
String process(String templateName, String sourceCode, Map params,
TemplateProcessEnv templateEnv);
/**
* create template env to process
*
* @return TemplateEnv
*/
T createTemplateProcessEnv();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy