2.3.14
Page Contents
发布日期:2008-09-01
FTL 方面的更改
-
新内置的:
xhtml
。查看更多here... -
新的特殊变量:
template_name
。查看更多here... -
现在,您可以将参数的值用作其他参数的默认值,例如
<#macro section title label=title>
。在早期版本中,它的工作不可靠。参数的 Sequences 没有限制,就像<#macro section label=title title>
一样。 -
添加了一个新的数字格式说明符,
computer
。这使用与exp?c
相同的格式。
Java 方面的更改
-
freemarker.ext.servlet.AllHttpScopesHashModel
的构造函数现已公开,允许在第三方 Web 框架中重用。 -
错误修正:
freemarker.ext.beans.SimpleMapModel
(不同于freemarker.ext.beans.MapModel
或freemarker.template.SimpleHash
)在传递单字符字符串作为键时不允许java.lang.Character
键查找。 -
错误修正:
freemarker.template.utility.DeepUnwrap
类中的允许解包对于序列元素和哈希值不是递归允许的。 -
错误修正:对于明确绑定到 Map 的
null
值,freemarker.ext.beans.MapModel
返回BeansWrapper.wrap(null)
而不是null
。 -
错误修正:修复了一个细微的错误,该错误带有实现类型参数化接口的类的属性获取器。
-
错误修复:另一个极端情况为[1939742]。