Package com.github.mustachejava.resolver
Class DefaultResolver
java.lang.Object
com.github.mustachejava.resolver.DefaultResolver
- All Implemented Interfaces:
MustacheResolver
Mustache resolver that provides the default functionality
that the default mustache factory relies on by combining
the classpath and the filesystem resolver.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClasspathResolverprivate final FileSystemResolverprivate final URIResolver -
Constructor Summary
ConstructorsConstructorDescriptionDefaultResolver(File fileRoot) Use the file system to resolve mustache templates.DefaultResolver(String resourceRoot) Use the classpath to resolve mustache templates. -
Method Summary
-
Field Details
-
classpathResolver
-
fileSystemResolver
-
uriResolver
-
-
Constructor Details
-
DefaultResolver
public DefaultResolver() -
DefaultResolver
Use the classpath to resolve mustache templates.- Parameters:
resourceRoot- where in the classpath to find the templates
-
DefaultResolver
Use the file system to resolve mustache templates.- Parameters:
fileRoot- where in the file system to find the templates
-
-
Method Details
-
getReader
- Specified by:
getReaderin interfaceMustacheResolver
-