@Test public void cForSortEmployeesWithURI() { employees = Lists.list( new Employee("Rick", "Hightower", 1, new Phone("320", "555", "1212"), Fruit.ORANGES, Fruit.APPLES, Fruit.STRAWBERRIES), new Employee("Adam", "Hightower", 1, new Phone("320", "555", "1212"), Fruit.ORANGES, Fruit.APPLES, Fruit.STRAWBERRIES), new Employee("Zed", "Hightower", 1, new Phone("320", "555", "1212"), Fruit.ORANGES, Fruit.APPLES, Fruit.STRAWBERRIES), new Employee("Lucas", "Hightower", 1, new Phone("320", "555", "1212"), Fruit.ORANGES, Fruit.APPLES, Fruit.STRAWBERRIES), new Employee("Ryan", "Hightower", 1, new Phone("320", "555", "1212"), Fruit.ORANGES, Fruit.APPLES, Fruit.STRAWBERRIES), new Employee("Lucas", "Smith", 1, new Phone("320", "555", "1212"), Fruit.ORANGES, Fruit.APPLES, Fruit.STRAWBERRIES) ); String results = template.replaceFromURI( "classpath: Maps.map("employees", employees)); Boon.equalsOrDie("#\n" + " Adam, Hightower\n" + "\n" + " Lucas, Hightower\n" + "\n" + " Lucas, Smith\n" + "\n" + " Rick, Hightower\n" + "\n" + " Ryan, Hightower\n" + "\n" + " Zed, Hightower\n" + "#", "#" + results + "#"); }
@Override public String replaceFromURI(String resource, Object... context) { final String template = IO.readResource(resource); return replace(template, context); }
BoonTemplate implements Template { @Override public String replaceFromURI(String resource, Object... context) { final String template = IO.readResource(resource); return replace(template, context); } }
BoonTemplate implements Template { @Override public String replaceFromURI(String resource, Object... context) { final String template = IO.readResource(resource); return replace(template, context); } BoonTemplate();  BoonTemplate(TemplateParser templateParser);  BoonTemplate(ExpressionContext context, TemplateParser templateParser); }
BoonTemplate implements Template { @Override public String replaceFromURI(String resource, Object... context) { final String template = IO.readResource(resource); return replace(template, context); } BoonTemplate();  BoonTemplate(TemplateParser templateParser);  BoonTemplate(ExpressionContext context, TemplateParser templateParser); @Override String replace(String template, Object... context); @Override String replaceFromResource(String resource, Object... context); @Override String replaceFromFile(String resource, Object... context); @Override String replaceFromURI(String resource, Object... context); String inlcudeFromURI(String resource); void displayTokens(); static Template template(); static Template jstl(); void addFunctions(Class<?> functions); void addFunctions(String prefix, Class<?> functions); }
BoonTemplate implements Template { @Override public String replaceFromURI(String resource, Object... context) { final String template = IO.readResource(resource); return replace(template, context); } BoonTemplate();  BoonTemplate(TemplateParser templateParser);  BoonTemplate(ExpressionContext context, TemplateParser templateParser); @Override String replace(String template, Object... context); @Override String replaceFromResource(String resource, Object... context); @Override String replaceFromFile(String resource, Object... context); @Override String replaceFromURI(String resource, Object... context); String inlcudeFromURI(String resource); void displayTokens(); static Template template(); static Template jstl(); void addFunctions(Class<?> functions); void addFunctions(String prefix, Class<?> functions);  }