3839404142434445464748
/** * 5. Merge context with template */ StringWriter writer = new StringWriter(); velocityEngine.merge(writer); // => Result of merge System.out.println(writer.getBuffer()); } catch(Exception e) {
3738394041424344454647
/** * 5. Merge context with template */ StringWriter writer = new StringWriter(); freemarkerEngine.merge(writer); // => Result of merge System.out.println(writer.getBuffer()); } catch(Exception e) {
5960616263646566676869
putContext(context); /** * 5. Merge model and context */ templateEngine.merge(modelOutput); } public String getTemplateEngineType() { if (templateEngineType == null) {