Commit a41393f
committed
Add param-evaluation-order specs for include vs render
include_params_see_earlier_params (c=200): {% include 't' a: 1, b: a %}
→ "1-1". Include params accumulate in a temp scope — b sees a.
render_params_independent (c=220): {% render 't' a: 1, b: a %} → "1-".
Render params are evaluated independently against the outer scope — b
does NOT see a (a is undefined in outer scope). Stems from render's
isolation: fresh scope per call, params don't cross-reference.
Hints cross-reference each other to make the contrast explicit. Verified
against liquid-ruby 5.13.1 parent ea78f19 commit a41393f
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
320 | 347 | | |
321 | 348 | | |
322 | 349 | | |
| |||
0 commit comments