Class FreemarkerParseFactory

java.lang.Object
org.jeecgframework.minidao.util.FreemarkerParseFactory

public class FreemarkerParseFactory extends Object
Version:
V1.0
Author:
赵俊夫
  • Constructor Details

    • FreemarkerParseFactory

      public FreemarkerParseFactory()
  • Method Details

    • isExistTemplate

      public static boolean isExistTemplate(String tplName) throws Exception
      判断模板是否存在
      Throws:
      Exception
    • parseTemplate

      public static String parseTemplate(String tplName, Map<String,Object> paras)
      解析ftl模板
      Parameters:
      tplName - 模板名
      paras - 参数
      Returns:
    • parseTemplateContent

      public static String parseTemplateContent(String tplContent, Map<String,Object> paras)
      解析ftl
      Parameters:
      tplContent - 模板内容
      paras - 参数
      Returns:
      String 模板解析后内容