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

Support of subexpressions #2

Open
oakleaf opened this issue Jun 25, 2024 · 0 comments
Open

Support of subexpressions #2

oakleaf opened this issue Jun 25, 2024 · 0 comments

Comments

@oakleaf
Copy link

oakleaf commented Jun 25, 2024

Hello, it doesnt look like this repo is maintained, but if it were possible, it would be very cool to upgrade it to support PHP 8.3 (It does, but at the same time, refresh so it takes advantages of all new features).

One suggestion I am hoping for dearly is to support subexpressions, which would enable block helpers within else statements. E.g:

{{#compare "==" value1 "some"}}

{{else (compare "==" value "somethingelse")}}  <-Subexpression

{{else}}

{{/compare}}

Here's examples of how the JS lib handles it:
https://handlebarsjs.com/guide/expressions.html#subexpressions
https://handlebarsjs.com/guide/builtin-helpers.html#if

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