com.github.mustachejava.codes.DefaultMustache Maven / Gradle / Ivy
package com.github.mustachejava.codes;
import com.github.mustachejava.Code;
import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.Mustache;
import com.github.mustachejava.TemplateContext;
import com.github.mustachejava.util.InternalArrayList;
import com.github.mustachejava.util.Node;
import java.io.Writer;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Default Mustache
*/
public class DefaultMustache extends DefaultCode implements Mustache {
private Code[] codes;
private boolean inited = false;
public DefaultMustache(TemplateContext tc, DefaultMustacheFactory df, Code[] codes, String name) {
super(tc, df, null, name, null);
setCodes(codes);
}
@Override
public Code[] getCodes() {
return codes;
}
public Writer run(Writer writer, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy