panda.tpl.AbstractTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-core Show documentation
Show all versions of panda-core Show documentation
Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.
package panda.tpl;
public abstract class AbstractTemplate implements Template {
public String evaluate() throws TemplateException {
return evaluate((Object)null);
}
public String evaluate(Object context) throws TemplateException {
StringBuilder sb = new StringBuilder();
evaluate(sb, context);
return sb.toString();
}
public void evaluate(Appendable out) throws TemplateException {
evaluate(out, null);
}
}