2008-02-18
FreeMarker 2.3.12 is out!
Changes on the Java side
Bug fixed: [1857161] JSP SimpleTag support was broken in 2.3.11.
In the templates, now you can conveniently call Java methods that use the Java 5 varargs feature (variable-length argument lists). Also the overloaded-method chooser logic now considers vararg methods more intelligently.
Enum constants are now identified by their name() instead of by their toString() (because the latter can be overridden in subclasses). This doesn't affect the way enum constants are printed; of course that still uses toString().
Messages in parser exceptions now display the name of the template.
感觉这个版本没什么值得惊喜的东西
Bug fixed: [1857161] JSP SimpleTag support was broken in 2.3.11.
In the templates, now you can conveniently call Java methods that use the Java 5 varargs feature (variable-length argument lists). Also the overloaded-method chooser logic now considers vararg methods more intelligently.
Enum constants are now identified by their name() instead of by their toString() (because the latter can be overridden in subclasses). This doesn't affect the way enum constants are printed; of course that still uses toString().
Messages in parser exceptions now display the name of the template.
感觉这个版本没什么值得惊喜的东西
评论
vaja
2008-02-27
这个以前的版本就支持了。
xfan1982
2008-02-20
今天看freemarker的文档发现宏支持可变参数
<#macro img src extra...>
<img src="/context${src?html}"
<#list extra?keys as attr>
${attr}="${extra[attr]?html}"
</#list>
>
</#macro>
<@img src="/images/test.png" width=100 height=50 alt="Test"/>
<#macro img src extra...>
<img src="/context${src?html}"
<#list extra?keys as attr>
${attr}="${extra[attr]?html}"
</#list>
>
</#macro>
<@img src="/images/test.png" width=100 height=50 alt="Test"/>
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则
- 浏览: 1063 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
[Freemarker]空值处理最简 ...
freemark现在有3.8版本吗?现在才是2.3
-- by mmt -
[Freemarker]空值处理最简 ...
不是很清楚
-- by gaojy2008 -
[Freemarker]空值处理最简 ...
整个嵌套感觉有点不妥啊
-- by darkjune -
对于new,prototype,constr ...
谢谢,看来我的理解有点误差
-- by xfan1982 -
对于new,prototype,constr ...
"function对象是没有的",原型继承是不区分对象的,function是对象 ...
-- by afcn0






评论排行榜