-
- Enclosing class:
- Mustache
public static interface Mustache.CustomContext
Provides a means to implement custom logic for variable lookup. If a context object implements this interface, itsget
method will be used to look up variables instead of the usual methods. This is simpler than having a context implementMap
which would require that it also support theMap.entrySet()
method for iteration. ACustomContext
object cannot be used for a list section.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String name)
Fetches the value of a variable namedname
.
-