src/main/java/tinyrtpl/Rtpl.java
private static String processGet(Data data, String oref) {
        if (data == null || oref == null) return null;
        String ref = oref.trim();
        if ("".equals(ref)) return "{{}}";
        Data r;
        if (ref.charAt(0) == '#') {
            r = Rtpl._get(data, ref.substring(1), false);
            if (r == null || r.isNull()) return "{{" + oref + "}}";
            return StringEscapeUtils.escapeHtml4(r.toString());//String());
        } else {
            r = Rtpl._get(data, ref, false);
            if (r == null || r.isNull()) return "{{" + oref + "}}";
            return r.toString();//String();
        }
    }
/**
     * Process a GET string.
     * @param data: the data scope
     * @param oref: the reference
     * @return the ultimate value in string format
     */
Process a GET string.
@param data: the data scope
@param oref: the reference
@return the ultimate value in string format
Process a GET string . @param data : the data scope @param oref : the reference @return the ultimate value in string format
private static String processGet(Data data, String oref) {
        if (data == null || oref == null) return null;
        String ref = oref.trim();
        if ("".equals(ref)) return "{{}}";
        Data r;
        if (ref.charAt(0) == '#') {
            r = Rtpl._get(data, ref.substring(1), false);
            if (r == null || r.isNull()) return "{{" + oref + "}}";
            return StringEscapeUtils.escapeHtml4(r.toString());
        } else {
            r = Rtpl._get(data, ref, false);
            if (r == null || r.isNull()) return "{{" + oref + "}}";
            return r.toString();
        }
    }
private static String processGet ( Data data , String oref ) { if ( data == null || oref == null ) return null ; String ref = oref . trim ( ) ; if ( "" . equals ( ref ) ) return "{{}}" ; Data r ; if ( ref . charAt ( 0 ) == '#' ) { r = Rtpl . _get ( data , ref . substring ( 1 ) , false ) ; if ( r == null || r . isNull ( ) ) return "{{" + oref + "}}" ; return StringEscapeUtils . escapeHtml4 ( r . toString ( ) ) ; } else { r = Rtpl . _get ( data , ref , false ) ; if ( r == null || r . isNull ( ) ) return "{{" + oref + "}}" ; return r . toString ( ) ; } }
Process a GET string.
Process a GET string .
//String()); //String();