Class SpringMustacheFactory
- java.lang.Object
-
- com.github.mustachejava.DefaultMustacheFactory
-
- com.github.mjeanroy.springmvc.view.mustache.mustachejava.SpringMustacheFactory
-
- All Implemented Interfaces:
com.github.mustachejava.MustacheFactory
public final class SpringMustacheFactory extends com.github.mustachejava.DefaultMustacheFactory
Implementation of mustache factory that use a template loader internally. Future release of mustache.java will support custom template resolver, this implementation will be useless. See: https://github.com/spullara/mustache.java/pull/105
-
-
Constructor Summary
Constructors Constructor Description SpringMustacheFactory(com.github.mustachejava.MustacheResolver mustacheResolver, MustacheTemplateLoader templateLoader)
Build new mustache factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolvePartialPath(String dir, String name, String extension)
String
toString()
-
Methods inherited from class com.github.mustachejava.DefaultMustacheFactory
compile, compile, compile, compilePartial, createLambdaCache, createMustacheCache, createMustacheVisitor, encode, filterText, getExecutorService, getFragment, getFragmentCacheFunction, getMustacheCacheFunction, getObjectHandler, getReader, getRecursionLimit, setExecutorService, setObjectHandler, setRecursionLimit, translate
-
-
-
-
Constructor Detail
-
SpringMustacheFactory
public SpringMustacheFactory(com.github.mustachejava.MustacheResolver mustacheResolver, MustacheTemplateLoader templateLoader)
Build new mustache factory.- Parameters:
mustacheResolver
- The mustache template resolver.templateLoader
- Template loader to use.
-
-