Skip to content

Nested variable override#18

Merged
cappuc merged 2 commits intomainfrom
nested-variable-override
May 10, 2024
Merged

Nested variable override#18
cappuc merged 2 commits intomainfrom
nested-variable-override

Conversation

@cappuc
Copy link
Copy Markdown
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
@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