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 2.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.