Class SpecMustacheFactory

java.lang.Object
com.github.mustachejava.DefaultMustacheFactory
com.github.mustachejava.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 Details

    • SpecMustacheFactory

      public SpecMustacheFactory()
    • SpecMustacheFactory

      public SpecMustacheFactory(MustacheResolver mustacheResolver)
    • SpecMustacheFactory

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

      public SpecMustacheFactory(File fileRoot)
      Use the file system to resolve mustache templates.
      Parameters:
      fileRoot - the root of the file system where templates are stored
  • Method Details