Closed devinrsmith closed 6 years ago
This seems fine to me. Technically you could already make your own custom subclass of BasicCollector (or DefaultCollector) and use it in conjunction with your own custom context class, but that's a lot of fooling around for something that is a lot simpler with this built-in mechanism.
I'm going to rename MustacheCustomContext
to Mustache.CustomContext
to match all the other inner classes and interfaces that are used by Mustache
. It would be rather odd to have half a dozen extension points that are all scoped inside the Mustache
class and then have this one thing be scoped at the top-level.
Thanks for the fast merge!
Hoping that something like this would work.
Fixes https://github.com/samskivert/jmustache/issues/102