Package com.github.mustachejava.resolver
Class ClasspathResolver
java.lang.Object
com.github.mustachejava.resolver.ClasspathResolver
- All Implemented Interfaces:
MustacheResolver
MustacheResolver implementation that resolves mustache files from the classpath.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClasspathResolver(String resourceRoot) Use the classpath to resolve mustache templates. -
Method Summary
-
Field Details
-
resourceRoot
-
-
Constructor Details
-
ClasspathResolver
public ClasspathResolver() -
ClasspathResolver
Use the classpath to resolve mustache templates.- Parameters:
resourceRoot- where to find the templates
-
-
Method Details
-
getReader
- Specified by:
getReaderin interfaceMustacheResolver
-
concatResourceRootAndResourceName
-