All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.featherfly.hammer.tpl.TemplateEngine Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version

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