Twig 1.6.0 released
Twig 1.6 has just been released. It fixes quite a few bugs an introduces some small new features. Here is the entire changelog for this version:
- made a speed optimization to macro calls when imported via the “from” tag
- added slice notation support for the [] operator (syntactic sugar for the slice operator)
- added a slice filter
- added string support for the reverse filter
- added a date function to ease date comparison
- added recursive parsing support in the parser
added string and integer handling for the random function
fixed raw blocks when used with the whitespace trim option
- fixed globals, parsers, visitors, filters, tests, and functions management in Twig_Environment when a new one or new extension is added
- fixed the attribute function when passing arguments
- fixed the empty test and the length filter for Twig_Markup instances
- fixed unary operators precedence