import org.jamon.TemplateManager; import org.jamon.TemplateManagerSource; public class JamonExample { public static void main(String[] args) throws Exception { TemplateManager templateManager = TemplateManagerSource.getTemplateManager(JamonExample.class); String templateName = "example.template"; Template template = templateManager.getTemplate(templateName); String dynamicContent = "World"; template.render(WriterFactory.fromOutputStream(System.out), dynamicContent); } }


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