Velocity 工做原理

個程序很簡單,可是它能讓你清楚的瞭解 Velocity 的基本工做原理。程序中其餘部分基本上很固定,最主要的部分在如下代碼   這裏 Velocity 獲取模板文件,獲得模板引用 /* next, get the Template */ Template t = ve.getTemplate( "hellosite.vm" );   這裏,初始化環境,並將數據放入環境 /* create a co
相關文章
相關標籤/搜索