Make MustacheCustomContext a Mustache inner interface.

This matches the style of all the other extension points.
This commit is contained in:
Michael Bayne
2018-08-21 17:20:33 -07:00
parent 1c025166eb
commit b3c54669cc
5 changed files with 19 additions and 15 deletions
@@ -45,8 +45,8 @@ public class MustacheTest extends SharedTests
});
}
@Test public void testMustacheCustomContext() {
test("bar", "{{foo}}", new MustacheCustomContext() {
@Test public void testCustomContext() {
test("bar", "{{foo}}", new Mustache.CustomContext() {
@Override
public Object get(String name) {
return "foo".equals(name) ? "bar" : null;