Class SpecMustacheFactory

  • All Implemented Interfaces:
    MustacheFactory

    public class SpecMustacheFactory
    extends DefaultMustacheFactory
    This factory is similar to DefaultMustacheFactory but handles whitespace according to the mustache specification. Therefore the rendering is less performant than with the DefaultMustacheFactory.
    • Constructor Detail

      • SpecMustacheFactory

        public SpecMustacheFactory()
      • SpecMustacheFactory

        public SpecMustacheFactory​(MustacheResolver mustacheResolver)
      • SpecMustacheFactory

        public SpecMustacheFactory​(java.lang.String classpathResourceRoot)
        Use the classpath to resolve mustache templates.
        Parameters:
        classpathResourceRoot - the location in the resources where templates are stored
      • SpecMustacheFactory

        public SpecMustacheFactory​(java.io.File fileRoot)
        Use the file system to resolve mustache templates.
        Parameters:
        fileRoot - the root of the file system where templates are stored