public class FallbackMustacheFactory extends DefaultMustacheFactory
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
resourceRoots
List of fallback resource roots to search through.
|
es, mc, mustacheCache, oh, recursionLimit, templateCache| Constructor and Description |
|---|
FallbackMustacheFactory(java.io.File fileRoot,
java.io.File fallbackRoot)
Simple constructor for a fallback Mustache.java factory.
|
FallbackMustacheFactory(java.lang.Object... resourceRoots)
Generic constructor for a fallback Mustache.java factory.
|
FallbackMustacheFactory(java.lang.String resourceRoot,
java.lang.String fallbackRoot)
Simple constructor for a fallback Mustache.java factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getReader(java.lang.String resourceName)
Return a reader for accessing resource files.
|
compile, compile, compile, compilePartial, createLambdaCache, createMustacheCache, createMustacheVisitor, encode, filterText, getExecutorService, getFragment, getFragmentCacheFunction, getMustacheCacheFunction, getObjectHandler, getRecursionLimit, resolvePartialPath, setExecutorService, setObjectHandler, setRecursionLimit, translateprivate java.lang.Object[] resourceRoots
public FallbackMustacheFactory(java.lang.String resourceRoot,
java.lang.String fallbackRoot)
resourceRoot - normal resource rootfallbackRoot - fallback alternative rootpublic FallbackMustacheFactory(java.io.File fileRoot,
java.io.File fallbackRoot)
fileRoot - normal resource rootfallbackRoot - fallback alternative rootpublic FallbackMustacheFactory(java.lang.Object... resourceRoots)
resourceRoots - array of fallback resource roots as String or Filepublic java.io.Reader getReader(java.lang.String resourceName)
getReader in interface MustacheFactorygetReader in class DefaultMustacheFactoryresourceName - resource name relative to one of the fallback resource roots