Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested variable override #18

Merged
merged 2 commits into from
May 10, 2024
Merged

Nested variable override #18

merged 2 commits into from
May 10, 2024

Conversation

cappuc
Copy link
Contributor

@cappuc cappuc commented May 3, 2024

With this PR we can override a nested variable (for example product.name) without overriding the entire variable.

There are breaking changes:

  • RenderContext::findVariable will be renamed RenderContext::findVariables and will return an array of matching variables (sorted by priority)
  • RenderContext::lookupAndEvaluate has been removed (the evaluation has been moved to VariableLookup)

@cappuc cappuc merged commit 10bb250 into main May 10, 2024
16 checks passed
@cappuc cappuc deleted the nested-variable-override branch May 10, 2024 12:52
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.

1 participant