Class TemplateInterpolation

java.lang.Object
io.leandev.appfuse.notification.template.TemplateInterpolation

public final class TemplateInterpolation extends Object

範本 ${name} 具名插值(供各 NotificationTemplateResolver 共用)

model 對應值替換 ${name};缺值替為空字串。name 允許英數、.-_

Since:
4.0.0
  • Method Details

    • interpolate

      public static String interpolate(String template, Map<String,Object> model)
      template${name} 具名插值
      Parameters:
      template - 範本字串(可為 null)
      model - 插值資料袋
      Returns:
      插值後字串(template 為 null 時回 null)