1. Vm使用(velocityTools配置)
2. 載入宏
3. #set(圖1)
4. 註釋
4.1. 單行註釋
4.2. 多行註釋
5. 引用
VTL中有三種類型的引用:變量,屬性和方法。
有關引用的所有參數都處理爲字符串對象。Everything coming to andfrom a reference is treated as a String object. 假如有一個對象表示$foo (比如說是整型對象),Velocity將調用其toString() 方法來將此對象轉換爲一個字符串。