论坛首页 Java版 Webwork

FreeMarker 2.3.12 is out!

浏览 699 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
时间:2008-02-18
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.

感觉这个版本没什么值得惊喜的东西
   
时间: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"/>
   
0 请登录后投票
时间:2008-02-27
这个以前的版本就支持了。
   
0 请登录后投票
论坛首页 Java版 Webwork

跳转论坛: