Oh yeah, we need a way to plug in a custom collector.

This commit is contained in:
Michael Bayne
2011-10-13 20:39:39 -07:00
parent 76e9d54683
commit c67f6aeac5
@@ -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;