samskivert / jmustache

A Java implementation of the Mustache templating language.
Other
834 stars 128 forks source link

Custom context interface for implementing generic variable lookup #102

Closed devinrsmith closed 6 years ago

devinrsmith commented 6 years ago

I'm hoping that jmustache can provide an interface for callers to implement their own generic variable lookup. It would be useful for setups where we don't necessarily know ahead of time what the keys will be (so we can't rely on our own getXXX methods for reflection), and we aren't able to / don't want to iterate over the whole key/value space to provide a Map.