《Velocity 模板使用指南》中文版 田玉兵 (整理) 目 录 1
本文目地和使用对象 2
什么是Velocity
Velocity 能为你做什么
一个 Mu d Store Ex ample 4
Velocity Template Langu age (VTL): 介绍 5
输出第一个 VTL页面
Comments(注释) 7
References(引用) 1
Variables(变量) 2
Properties(属性) 3
Methods(命令) 4
属性引用中的属性查找规则 8
Formal Reference Notation(正规引用格式注意事项) 9
Quiet Reference Notation(静态引用输出) 10
Getting literal( 语义问题) 1
Currency(货币标志) 2
Escaping Valid VTL References(封装有效的引用) 11
Case Su bstitu tion(可选的格式) 12
Directiv es(指令符号) 1
#set指令 2
Literals (语义解析) 3
Conditionals(条件判断) 4
Loops(循环) 3
Include(引入) 6
Parse(解析模板) 7
Stop 8
Velocimacros(宏调用) 13
注掉 VTL Directiv es 14
VTL: 一般使用的格式 15
Other Features and Miscellany(其它特性和细节) 1
数学计算 2
Range Operator 3
Advanced Issues: Escaping and
Velocimacro Miscellany(关于宏的一些问题) 5
String Concatenation(连结字符串) 16
Feedback 1