chris@0: /* chris@0: * To change this template, choose Tools | Templates chris@0: * and open the template in the editor. chris@0: */ chris@0: chris@0: package test; chris@0: chris@0: import com.so.news.util.StringTemplate; chris@0: chris@0: /** chris@0: * chris@0: * @author chris chris@0: */ chris@0: public class StringTemplateTest chris@0: { chris@0: public static void main(String[] args) chris@0: { chris@0: StringTemplate templ chris@0: = new StringTemplate("SELECT %row FROM %table WHERE %row = ich"); chris@0: chris@0: templ.set("row", "name"); chris@0: templ.set("table", "UserTable"); chris@0: chris@0: System.out.println(templ.toString()); chris@0: } chris@0: }