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

Allow multiple merge keys (syntax like ::each and ::call) #11

Open
scravy opened this issue Mar 12, 2021 · 0 comments
Open

Allow multiple merge keys (syntax like ::each and ::call) #11

scravy opened this issue Mar 12, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@scravy
Copy link
Owner

scravy commented Mar 12, 2021

::each and ::call have their arguments within the key, i.e.

::each >arguments here<: ...

and

::call template:
  arg1: ...
  arg2: ...

The same syntax could be used for ::merge to allow multiple merge keys in an object, i.e. we can have:

::let:
  some:
    foo: one
    bar: two
  more:
    qux: three
    quuz: four
object:
  property: value
  ::merge some: {}
  ::merge more: {}

The actual argument should be ignored (could also be null instead of the empty object {}).

Depends on #10 . #3 would be nice to have for this too.

@scravy scravy added the enhancement New feature or request label Mar 12, 2021
@scravy scravy changed the title Allow multiple merge keys (syntax. like ::each and ::call) Allow multiple merge keys (syntax like ::each and ::call) Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant