• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sunng87 / handlebars-rust / 27924635617
85%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2026 01:54AM UTC
Jobs 1
Files 29
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jun 2026 01:49AM UTC coverage: 85.007% (+0.3%) from 84.747%
27924635617

push

github

web-flow
fix: inherit @key/@index/@first/@last into partials and #with (#758)

The implicit data variables (@key, @index, @first, @last) set by an
enclosing {{#each}} were not accessible inside a partial (or {{#with}}),
because entering those scopes pushed a fresh BlockContext whose empty
local variables shadowed the enclosing each's. This diverged from
Handlebars.js, where data variables are inherited across these
boundaries.

Resolve by inheriting the parent block's local variables into the new
block when:

  * expanding a partial (src/partial.rs)  -- fixes #756
  * entering a {{#with}} block (src/helpers/helper_with.rs)  -- fixes #592

Block params declared with `as |v k|` are deliberately NOT inherited,
as they are scoped to their block (matching Handlebars.js). A nested
{{#each}} inside a partial still sets its own @key/@index, so there is
no leak.

Add an immutable getter BlockContext::local_variables() to enable the
clone. Add regression tests covering object/array iteration, @first/
@last/@index, nested each resetting key, chained partials, and the
no-leak case outside any loop.

8 of 8 new or added lines in 3 files covered. (100.0%)

1701 of 2001 relevant lines covered (85.01%)

7.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27924635617.1 22 Jun 2026 01:54AM UTC 29
85.01
GitHub Action Run
Source Files on build 27924635617
  • Tree
  • List 29
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 09c20163 on github
  • Prev Build on master (#27872834449)
  • Next Build on master (#27924670004)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc