Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline conditions #953

Open
s2b opened this issue Aug 11, 2024 · 0 comments
Open

Inline conditions #953

s2b opened this issue Aug 11, 2024 · 0 comments

Comments

@s2b
Copy link
Contributor

s2b commented Aug 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant