added MustacheCustomContext

This commit is contained in:
Devin Smith
2018-08-21 17:20:00 -05:00
parent 4533567303
commit 433e9677d4
4 changed files with 30 additions and 0 deletions
+1
View File
@@ -75,6 +75,7 @@ void executeTemplate (Reader template, Writer out, Map<String, String> data) {
The execution context can be any Java object. Variables will be resolved via the following
mechanisms:
* If the context is a `MustacheCustomContext`, `MustacheCustomContext.get` will be used.
* If the context is a `Map`, `Map.get` will be used.
* If a non-void method with the same name as the variable exists, it will be called.
* If a non-void method named (for variable `foo`) `getFoo` exists, it will be called.