All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.lang.tmpl.TmplStaticEle Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
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("$", "$$");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy