Uses of Class
com.samskivert.mustache.Mustache.Compiler
-
Uses of Mustache.Compiler in com.samskivert.mustache
Methods in com.samskivert.mustache that return Mustache.CompilerModifier and TypeMethodDescriptionstatic Mustache.CompilerMustache.compiler()Returns a compiler that escapes HTML by default and does not use standards mode.Mustache.Compiler.defaultValue(String defaultValue) Returns a compiler that will use the given value for any variable that is missing, or otherwise resolves to null.Mustache.Compiler.emptyStringIsFalse(boolean emptyStringIsFalse) Returns a compiler that will treat empty string as a false value if parameter is true.Mustache.Compiler.escapeHTML(boolean escapeHTML) Returns a compiler that either does or does not escape HTML by default.Returns a compiler that will use the given value for any variable that resolves to null, but will still raise an exception for variables for which an accessor cannot be found.Mustache.Compiler.standardsMode(boolean standardsMode) Returns a compiler that either does or does not use standards mode.Mustache.Compiler.strictSections(boolean strictSections) Returns a compiler that throws an exception when a section references a missing value (true) or treats a missing value asfalse(false, the default).Mustache.Compiler.withCollector(Mustache.Collector collector) Returns a compiler configured to use the supplied collector.Mustache.Compiler.withDelims(String delims) Returns a compiler configured to use the supplied delims as default delimiters.Mustache.Compiler.withEscaper(Mustache.Escaper escaper) Configures theMustache.Escaperused to escape substituted text.Mustache.Compiler.withFormatter(Mustache.Formatter formatter) Configures theMustache.Formatterused to turn objects into strings.Mustache.Compiler.withLoader(Mustache.TemplateLoader loader) Returns a compiler configured to use the supplied template loader to handle partials.Mustache.Compiler.zeroIsFalse(boolean zeroIsFalse) Returns a compiler that will treat zero as a false value if parameter is true.