Skip to content

[ISSUE - 1167] Add support for child-first resolution - #1171

Closed
sshailabh wants to merge 1 commit into
jknack:masterfrom
sshailabh:child-first
Closed

[ISSUE - 1167] Add support for child-first resolution#1171
sshailabh wants to merge 1 commit into
jknack:masterfrom
sshailabh:child-first

Conversation

@sshailabh

Copy link
Copy Markdown

Handlebars.js uses child-first resolution instead of parent-first resolution: https://handlebarsjs.com/guide/expressions.html#changing-the-context

This pr allows to define the resolution(child-first vs parent-first) in the Handlebars intilaization allowing clients to decide the resolution method. Default resolution is parent-first making it backward compatible.

Issue link: #1167

@DatApplePy

Copy link
Copy Markdown

@sshailabh That's awesome! Can't wait for it to be merged 🔥

@DatApplePy

Copy link
Copy Markdown

@jknack Would you please take a look at this PR?
I would really appreciate it 😇

@jknack

Copy link
Copy Markdown
Owner

This is the default behaviour no need to add anything, you can see the test here: https://github.com/jknack/handlebars.java/blob/master/handlebars/src/test/java/com/github/jknack/handlebars/i1167/Issue1167.java

@jknackjknack closed this Jun 9, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@sshailabh@DatApplePy@jknack