forked from fanruan/finekit
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.
20 lines
459 B
20 lines
459 B
6 years ago
|
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);
|
||
|
}
|
||
|
}
|