@Test public void valuesSubstitutedIntoTemplate() { Template template = new Template("Hello {{value}} "); assertEquals("Hello World ", template.render(foo)); }
public String render(Object o) { StringBuilder result = new StringBuilder(template.length()); render(o, result); return result.toString(); }
Template { public String render(Object o) { StringBuilder result = new StringBuilder(template.length()); render(o, result); return result.toString(); } }
Template { public String render(Object o) { StringBuilder result = new StringBuilder(template.length()); render(o, result); return result.toString(); } Template(final String template); }
Template { public String render(Object o) { StringBuilder result = new StringBuilder(template.length()); render(o, result); return result.toString(); } Template(final String template); static Template fromFile(final Class<?> resourceRoot, final String fileName); String render(Object o); }
Template { public String render(Object o) { StringBuilder result = new StringBuilder(template.length()); render(o, result); return result.toString(); } Template(final String template); static Template fromFile(final Class<?> resourceRoot, final String fileName); String render(Object o);  }