Changes for page Velocity upgrade to 2.2
Last modified by Vincent Massol on 2021/04/06
From version 1.1
edited by Thomas Mortagne
on 2020/01/20
on 2020/01/20
Change comment:
There is no comment for this version
To version 3.1
edited by Thomas Mortagne
on 2020/01/20
on 2020/01/20
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- ReleaseNotes.Code.ChangesClass[0]
-
- summary
-
... ... @@ -1,6 +1,6 @@ 1 1 After 9 years Velocity finally got a update. You can see a detailed changelog on https://velocity.apache.org/engine/2.2/changes.html but here are the important new things from XWiki script authors: 2 2 3 -* Allow expressions inside []: {{code language="velocity"}}$foo[$bar + 1]{{/ velocity}}3 +* Allow expressions inside []: {{code language="velocity"}}$foo[$bar + 1]{{/code}} 4 4 * New strategy for reference boolean evaluation: 5 5 ** return false for a null object 6 6 ** return its value for a Boolean object, or the result of the getAsBoolean() method if it exists. ... ... @@ -27,4 +27,5 @@ 27 27 * Block directives no longer require parenthesis so #@foo #end is now allowed. Also, brackets now work with Block Macros so #{@foo}bar#end works 28 28 * Default block for empty loops: #foreach($i in []) loop block #else empty #end 29 29 * Rendering of arrays should display their content, as for lists 30 - 30 +* New generic $collectiontool which replaces and enhances the former SortTool 31 +* New generic $logtool