public static String process(String name, Object context) throws Exception { UnsyncStringWriter unsyncStringWriter = new UnsyncStringWriter(); process(name, context, unsyncStringWriter); return unsyncStringWriter.toString(); }
protected String processTemplate(String name, Map<String, Object> context) throws Exception { return StringUtil.strip(FreeMarkerUtil.process(_TPL_ROOT + name, context), '\r'); }
protected void processTemplate(String name, Map<String, Object> context) throws Exception { FreeMarkerUtil.process(name, context, _writerSampleSQL); }