Velocity 工做原理

个程序很简单,可是它能让你清楚的了解 Velocity 的基本工做原理。程序中其余部分基本上很固定,最主要的部分在如下代码   这里 Velocity 获取模板文件,获得模板引用 /* next, get the Template */ Template t = ve.getTemplate( "hellosite.vm" );   这里,初始化环境,并将数据放入环境 /* create a co
相关文章
相关标签/搜索