Support sub-expressions
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by tracing how Handlebars expressions and helpers are parsed and rendered; the issue does not identify a file, test, or entry point. Use the linked sub-expression documentation and the provided equality-helper example to define the intended behavior, then add coverage showing nested helper expressions work inside an if helper.
Written by the indexing model from the issue text.
Description
sub-expressions are very useful. They are supported by handlebars -> https://handlebarsjs.com/guide/expressions.html#subexpressions
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.
- Dominant language
- PHP
- Stars
- 77
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from salesforce/handlebars-php
-
Difficulty 4/5 3-5 days Newbie friendliness 57/100
salesforce/handlebars-php#32 ·
-
rendering with strict=true does not throw for missing nested variables in contextPossibly taken @hubermat claimed this 1151 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
salesforce/handlebars-php#23 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
salesforce/handlebars-php#22 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
salesforce/handlebars-php#21 · 1 comment · 4 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
salesforce/handlebars-php#11 · 1 comment ·
All issues in salesforce/handlebars-php
Similar issues
-
bug good first issue small
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
open-telemetry/opentelemetry-php#2164 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Перевод устарел
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day