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
get
onLayout Path And Filename Template
when property was manually set using setterPaths - Bug fix to avoid issues with malformed cache identifiers
- Bug fix to avoid attempting
htmlspecialchars
on 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
has
as alternative toMy Property () is
when usingMy Property () {object.
my Property} - New feature:
Parser
ViewHelper trait to use when ViewHelper only has functionality during parsingRuntime Only - New feature:
ignore
added 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
AND
andOR
as alternatives to&&
and|
in boolean attributes like| condition
onf:
if - New feature: support for custom error handling and a new implementation of a fault-tolerant error handler
- New feature: methods
get
andAll add
added toAll View
to allow getting and setting all variables in a scopeHelper Variable Container - New feature: concept of
Renderable
introduced. ARenderable
is 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