Skip to content

Conversation

@meld-cp
Copy link
Contributor

@meld-cp meld-cp commented Sep 21, 2025

Addresses #171.

I'm not sure this is the correct way to implement this, but the tests pass :-)... Any feedback?

Given:

{{ include 'named_arguments_promoted' this_arg: 5 }}

In the template you can use:

{{ $this_arg }}

Without breaking this:

{{ $.this_arg }}

@xoofx xoofx merged commit acfc97b into scriban:master Sep 21, 2025
1 check passed
@xoofx
Copy link
Member

xoofx commented Sep 21, 2025

Thanks!

@meld-cp meld-cp deleted the promote-named-args branch September 21, 2025 14:58
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