Replies: 1 comment
-
Also worth mentioning is the concept of YAML Anchors, References, and Extends. However, I think this would get pretty tedious to have to write all the time, so maybe just merging nested variables with the parent by default would be much easier from a user perspective (?) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a situation where I need to overwrite a single nested key/value pair inside an array, with YAML Front Matter. For example, consider this array in
config.php
:Using YAML, I wanted to set
baz
to something else for a certain page:Doing this currently replaces the/creates a new
foo
array. So this:... will output this:
If possible, it would be great if Jigsaw would merge in what you specify in YAML, instead of replacing the/creating a new
foo
. Hope this makes sense.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions