Important: #82230 - Updates to the Fluid template engine library
See forge#82230
Description
This article describes the changes that have been added to the Fluid template engine which is used in TYPO3.
- Bug fix to evaluate negative numbers in conditions the same way PHP does
- Bug fix for
getonLayout Path And Filename Templatewhen property was manually set using setterPaths - Bug fix to avoid issues with malformed cache identifiers
- Bug fix to avoid attempting
htmlspecialcharson any values that are not string-compatible() - Bug fix for adding namespaces to list of ignored namespaces
- Bug fix to make casting of ints/floats consistent in attribute values and in array values
- Bug fix to make internal cache of resolved ViewHelpers non-static to make sure it flushes between contexts
- Bug fix for recursive file resolving
- Performance bug fix to avoid loading compiled template classes that are already loaded
- Performance bug fix to make
f:static callable from compiled templatesrender - Performance bug fix to improve performance of uncompilable templates
- New feature: support for
hasas alternative toMy Property () iswhen usingMy Property () {object.my Property} - New feature:
ParserViewHelper trait to use when ViewHelper only has functionality during parsingRuntime Only - New feature:
ignoreadded toEmpty Attributes () Tag, can be called in tag based ViewHelpers to skip rendering of any attributes that evaluate to an empty stringBuilder - New feature: support for
ANDandORas alternatives to&&and|in boolean attributes like| conditiononf:if - New feature: support for custom error handling and a new implementation of a fault-tolerant error handler
- New feature: methods
getandAll addadded toAll Viewto allow getting and setting all variables in a scopeHelper Variable Container - New feature: concept of
Renderableintroduced. ARenderableis any class which implementsRenderable- instances of such classes can be assigned as template variables and passed toInterface f:render
Full list can be found on https://github.com/TYPO3/Fluid/compare/2.3.4...2.4.0