mustache.java
mustache.java copied to clipboard
Path nio File
https://github.com/spullara/mustache.java/pull/273 (Add FileSystemResolver(Path) constructor ) was merged into main on 6 Oct 2021, but isn't part of release 0.9.10
Simple to build from main, or even copy/paste the enhanced FileSystemResolver, but would be nice to have as the nio Path usage allows for mocking the filesystem with jmfs
Unfortunately my comment was not on top priority :( https://github.com/spullara/mustache.java/pull/224#issuecomment-543073806
But you can use com.github.mustachejava.DefaultMustacheFactory#DefaultMustacheFactory(com.github.mustachejava.MustacheResolver) constructor directly. Implement your own resolver.
com.github.mustachejava.MustacheResolver