2.3 list,break 指令 .........................................................................................170
2.4 include 指令 ...............................................................................................171
2.5 import 指令 ...............................................................................................174
2.6 noparse 指令 ..............................................................................................175
2.7 compress 指令 ............................................................................................176
2.8 escape,noescape 指令...............................................................................177
2.9 assign 指令 ................................................................................................179
2.10 global 指令 ..............................................................................................181
2.11 local 指令 ................................................................................................182
2.12 setting 指令 .............................................................................................182
2.13 用户自定义指令(<@...>) ......................................................................184
2.14 macro,nested,return 指令 ....................................................................186
2.15 function,return 指令...............................................................................190
2.16 flush 指令 ................................................................................................192
2.17 stop 指令.................................................................................................192
2.18 ftl 指令 ....................................................................................................193
2.19 t,lt,rt 指令 ..........................................................................................194
2.20 nt 指令 ....................................................................................................195
2.21 attempt,recover 指令 .............................................................................196
2.22 visit,recurse,fallback 指令 .....................................................................197
第三章 特殊变量参考文档 .....................................................................................202
第四章 FTL 中的保留名称.......................................................................................204
第五章 废弃的 FTL 结构 .........................................................................................205
5.1 废弃的指令列表 ........................................................................................205
5.2 废弃的内建函数列表 .................................................................................205
5.3 老式的 macro 和 call 指令 ..........................................................................205
5.4 转换指令 ..................................................................................................207
5.5 老式 FTL 语法 ............................................................................................208
5.6 #{…}式的数字插值 ......................................................................................209
第五部分 附录 ..............................................................................................................211
附录 A FAQ .............................................................................................................211
1. JSP 和 FreeMarker 的对比 .............................................................................211
2. Velocity 和 FreeMarker 的对比.......................................................................212
3. 为什么 FreeMarker 对 null-s 和不存在的变量很敏感,如何来处理它? ......212
4. 文档编写了特性 X,但是好像 FreeMarker 并不知道它,或者它的行为和文档描
述的不同,或者一个据称已经修改的 BUG 依然存在。 .....................................213
5. 为什么 FreeMarker 打印奇怪的数字数字格式(比如 1,000,000 或 1 000 000 而不
是 1000000)? ...............................................................................................213
6. 为什么 FreeMarker 会打印不好的小数和/或分组分隔符号(比如 3.14 而不是 3,14)
.......................................................................................................................214
7. 为什么当我想用如格式打印布尔值时,FreeMarker 会抛出错误,又如何来修正
呢?................................................................................................................214
8. FreeMarker 标签中的<和>混淆了编辑器或 XML 处理器,应该怎么做? .........214
9. 什么是合法的变量名? ...............................................................................214