org.nutz.lang.tmpl.TmplStaticEle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.lang.tmpl;
import org.nutz.lang.util.NutBean;
class TmplStaticEle implements TmplEle {
private String str;
public TmplStaticEle(String str) {
this.str = str;
}
@Override
public void join(StringBuilder sb, NutBean context, boolean showKey) {
sb.append(str);
}
@Override
public String toString() {
return str.replace("$", "$$");
}
}