Package com.alibaba.citrus.util.templatelite

Examples of com.alibaba.citrus.util.templatelite.Template.accept()


                for (String name : ((RefValue) value).getNames()) {
                    context().put("refName", toId(name));
                    context().put("refNameDisplay", name);
                    this.withSep = i++ > 0;

                    template.accept(this);
                }
            }

            // unknown value
            else {
View Full Code Here


        } else {
            Template tpl = new Template(resource);
            PrintWriter out = request.getWriter(contentType);

            // ����ģ���ļ��У�${url:relativeUrl}����ת����������URL
            tpl.accept(new TextWriter<PrintWriter>(out) {
                @SuppressWarnings("unused")
                public void visitUrl(String relativeUrl) {
                    out().print(request.getResourceURL(relativeUrl));
                }
            });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.