ITPub博客

首页 > Linux操作系统 > Linux操作系统 > stringtemplate用法整理

stringtemplate用法整理

原创 Linux操作系统 作者:lyhjimmy 时间:2013-05-01 08:51:55 0 删除 编辑
StringTemplateGroup sg = new StringTemplateGroup("GroupTest");
            sg.DefineTemplate("RowRed",
              "$it.Name$$it.Age$\r\n");
            sg.DefineTemplate("Rowblack",
              "$it.Name$$it.Age$\r\n");
            StringTemplate st = sg.DefineTemplate("List",
              "\r\n$Item:RowRed(),Rowblack()$
");
            st.SetAttribute("Item", uss);
=========================================================
http://www.cnblogs.com/lwme/archive/2010/04/29/1724479.html
http://www.cnblogs.com/lwme/archive/2010/04/30/1725329.html

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21203649/viewspace-759556/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: fckeditor文档库
请登录后发表评论 登录
全部评论

注册时间:2009-03-24

  • 博文量
    54
  • 访问量
    110172