#{javaClassName.methodName()} #{StringUtils.toUpper("hello")} WebMacro wm = new WebMacro(); Template template = wm.getTemplate("path/to/template.wm"); StringWriter writer = new StringWriter(); Context context = template.createContext(writer); context.put("dynamicData", "World"); template.process(context); String output = writer.toString();


上一篇:
下一篇:
切换中文