Skip to content

docs: note array index access with this.[n] in #each#189

Open
Hashim1999164 wants to merge 1 commit into
handlebars-lang:masterfrom
Hashim1999164:docs/each-array-segment-access
Open

docs: note array index access with this.[n] in #each#189
Hashim1999164 wants to merge 1 commit into
handlebars-lang:masterfrom
Hashim1999164:docs/each-array-segment-access

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 22, 2026

Copy link
Copy Markdown

Summary

  • Document how to read fixed array indexes inside #each using segment-literal paths like this.[0].
  • Link to the existing Literal segments guide and call out that this[0] is not valid Handlebars syntax.

Fixes #188

Test plan

  • Preview the Built-in Helpers #each section and confirm the new note renders correctly
  • Confirm the Literal segments link resolves

Document segment-literal notation for reading fixed indexes when
iterating arrays of arrays. Fixes handlebars-lang#188.
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

Successfully merging this pull request may close these issues.

Mention array access in Built-in Helpers#each docs

1 participant