Fluid
Fluid copied to clipboard
Inline conditions
Now that Fluid supports boolean literals (like {true}), the next step would be to support more advanced conditions not just in ConditionViewHelpers but right in the inline variable syntax.
Example:
<my:viewhelper disabled="{myString == 'test'}" />
<my:viewhelper disabled="{myString == 'test' && byBool}" />
This can probably be implemented with an ExpressionNode, however we need to be careful to not break existing expressions.
Related: #911
Not as elegant, but with #1031 at least the following syntax will be possible:
<my:viewhelper disabled="{f:if(condition: '{myString} == \'test\'')}" />
<my:viewhelper disabled="{f:if(condition: '{myString} == \'test\' && {myBool}')}" />