Class 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
    • Field Summary

      • Fields inherited from class com.github.mustachejava.DefaultMustacheFactory

        es, mc, mustacheCache, oh, recursionLimit, templateCache
    • 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.
    • Method Detail

      • resolvePartialPath

        public String resolvePartialPath​(String dir,
                                         String name,
                                         String extension)
        Overrides:
        resolvePartialPath in class com.github.mustachejava.DefaultMustacheFactory