Listing-related (#list) specialized convenience features that target some of the most typical tasks in templates:
New #list directive child directives, #else and #items deal with the special cases with 0-length lists. #sep makes inserting separators between items much easier than it was with if + var_has_next.
New built-ins that act on loop variables: var?index (deprecates var_index), var?counter (1-based index), var?has_next (deprecates var_has_next), var?item_parity (returns "odd" or "even"), var?item_cycle("lightRow", "darkRow"), and some more.
FTL now supports camel case for the>${x?upperCase} or or are valid. You can just start using camel case without configuring anything, however, within the same template, FreeMarker will require youto use the same naming convention for all>
FreeMarker 2.3.23-rc01 下载 (Binary-only for Google App Engine is here...)
FreeMarker是一个模板引擎,一个基于模板生成文本输出的通用工具,使用纯Java编写
FreeMarker被设计用来生成HTML Web页面,特别是基于MVC模式的应用程序
虽然FreeMarker具有一些编程的能力,但通常由Java程序准备要显示的数据,由FreeMarker生成页面,通过模板显示准备的数据(如下图)