插件开发工具库,推荐依赖该工具库。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
459 B

package com.fanruan.api.util;
import com.fr.base.TemplateUtils;
import java.util.Map;
public class TemplateKit {
/**
* 根据参数, 来计算文档字符串
* @param tpl 文档来源
* @param context 参数map
* @return 计算后结果
* @throws Exception
*/
public static String renderParameter4Tpl(String tpl, Map context) throws Exception {
return TemplateUtils.renderParameter4Tpl(tpl, context);
}
}