diff --git a/src/main/java/com/samskivert/mustache/Mustache.java b/src/main/java/com/samskivert/mustache/Mustache.java index a9467ff..2e239e1 100644 --- a/src/main/java/com/samskivert/mustache/Mustache.java +++ b/src/main/java/com/samskivert/mustache/Mustache.java @@ -118,6 +118,12 @@ public class Mustache this.missingIsNull, loader, this.collector); } + /** Returns a compiler configured to use the supplied collector. */ + public Compiler withCollector (Collector collector) { + return new Compiler(this.escapeHTML, this.standardsMode, this.nullValue, + this.missingIsNull, this.loader, collector); + } + protected Compiler (boolean escapeHTML, boolean standardsMode, String nullValue, boolean missingIsNull, TemplateLoader loader, Collector collector) { this.escapeHTML = escapeHTML;