@Test public void test() throws Exception { FreeMarkerTemplateParser c = new FreeMarkerTemplateParser("${name}"); Map<String, Object> params = new HashMap<String, Object>(); params.put("name", "dragon"); Assert.assertEquals("dragon", c.parse(params)); }
public Object parse(Object data) { if (this.tpl == null) return null; return FreeMarkerUtils.format(this.tpl, data); }
FreeMarkerTemplateParser implements Parser<Object> { public Object parse(Object data) { if (this.tpl == null) return null; return FreeMarkerUtils.format(this.tpl, data); } }
FreeMarkerTemplateParser implements Parser<Object> { public Object parse(Object data) { if (this.tpl == null) return null; return FreeMarkerUtils.format(this.tpl, data); } FreeMarkerTemplateParser(String tpl); }
FreeMarkerTemplateParser implements Parser<Object> { public Object parse(Object data) { if (this.tpl == null) return null; return FreeMarkerUtils.format(this.tpl, data); } FreeMarkerTemplateParser(String tpl); Object parse(Object data); }
FreeMarkerTemplateParser implements Parser<Object> { public Object parse(Object data) { if (this.tpl == null) return null; return FreeMarkerUtils.format(this.tpl, data); } FreeMarkerTemplateParser(String tpl); Object parse(Object data);  }