How many placeholder were substituted
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
The issue body is the only entry point provided; begin by locating how handlebars-php performs placeholder substitution and applies default values, then inspect any existing rendering tests or public API. Done means callers can identify substituted placeholders or retrieve the placeholders present in a template so they can detect missing data before or after rendering.
Written by the indexing model from the issue text.
Description
Is there a way to find out which variable/placeholder was substituted or a default value has been used?
We need to calculate, which placeholder was actually used. In our example, we will render one template multiple times with different values provided. And we would like to show to the user, which placeholder were problematic, because of missing data.
Either handlebar-php keeps track of the substitutions and I can get statistics from it. Or I could get a list of all placeholder within the template, so I can check myself, which data is present before rendering.
- 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 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
salesforce/handlebars-php#25 · 2 comments · 2 reactions ·
-
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 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