Class DefaultResolver

  • All Implemented Interfaces:
    MustacheResolver

    public class DefaultResolver
    extends java.lang.Object
    implements MustacheResolver
    Mustache resolver that provides the default functionality that the default mustache factory relies on by combining the classpath and the filesystem resolver.
    • Constructor Detail

      • DefaultResolver

        public DefaultResolver()
      • DefaultResolver

        public DefaultResolver​(java.lang.String resourceRoot)
        Use the classpath to resolve mustache templates.
        Parameters:
        resourceRoot - where in the classpath to find the templates
      • DefaultResolver

        public DefaultResolver​(java.io.File fileRoot)
        Use the file system to resolve mustache templates.
        Parameters:
        fileRoot - where in the file system to find the templates
    • Method Detail

      • getReader

        public java.io.Reader getReader​(java.lang.String resourceName)
        Specified by:
        getReader in interface MustacheResolver