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

Please add deep merge of templates #15

Open
Aliaksei-Tatarynchyk opened this issue Nov 1, 2018 · 0 comments
Open

Please add deep merge of templates #15

Aliaksei-Tatarynchyk opened this issue Nov 1, 2018 · 0 comments

Comments

@Aliaksei-Tatarynchyk
Copy link
Collaborator

Current default merge strategy is just to override all the content. E.g. we have following setup:
playbook:

templates:
- templ2.tmpl
- templ1.tmpl
variables:
  var: value
  ...

templ1.tmpl:

root:
  child1:
    ...
  child2:
    ...

templ2.tmpl:

root:
  child3:
    ...

Result will be

root:
  child3:
     ...

It's completely not ok, because it makes templates hierarchy useless. Need to add deep merging of templates, so rendered result will be the following:

root:
  child1:
    ...
  child2:
    ...
  child3:
    ...
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

No branches or pull requests

1 participant