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 sub-expressions #25

Open
alifeee opened this issue Mar 8, 2024 · 0 comments
Open

Support sub-expressions #25

alifeee opened this issue Mar 8, 2024 · 0 comments

Comments

@alifeee
Copy link

alifeee commented Mar 8, 2024

sub-expressions are very useful. They are supported by handlebars -> https://handlebarsjs.com/guide/expressions.html#subexpressions

image

For example, to use a "equality helper" in an "if helper"

{{#if (eq var1 var2)}}
  they are equal!
{{else}}
  they are not equal!
{{/if}}

I can try to help, but I am not really sure which piece of code to start with, as this is quite a generic request. It does not seem as if there is one part that "renders" the contents of the inside of a bracket, and one would have to do it oneself, per helper.

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