Skip to content

Evaluate named arg. values in caller context#652

Merged
xoofx merged 4 commits intoscriban:masterfrom
meld-cp:named-args-eval
Mar 12, 2026
Merged

Evaluate named arg. values in caller context#652
xoofx merged 4 commits intoscriban:masterfrom
meld-cp:named-args-eval

Conversation

@meld-cp
Copy link
Copy Markdown
Contributor

@meld-cp meld-cp commented Mar 12, 2026

Thanks for the fix in #649, it looks a lot cleaner now.

#649 moved the evaluation of the named argument values to after PushLocal which caused the wrong values to be passed down in some cases. This PR evaluates the values before the PushLocal and then sets the local values after it. Mimicking the functionality of #643 but now a lot cleaner thanks to #649

@xoofx
Copy link
Copy Markdown
Member

xoofx commented Mar 12, 2026

which caused the wrong values to be passed down in some cases.

Could you also add a test case for this?

@xoofx xoofx merged commit b640147 into scriban:master Mar 12, 2026
1 check passed
@xoofx
Copy link
Copy Markdown
Member

xoofx commented Mar 12, 2026

Thank you for the improvement!

@meld-cp meld-cp deleted the named-args-eval branch March 12, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants