Parent
Parent simply returns the parent nodes of the matching nodes.
Simple example
Given a sample.yml file of:
then
will output
Parent of nested matches
Given a sample.yml file of:
then
will output
N-th parent
You can optionally supply the number of levels to go up for the parent, the default being 1.
Given a sample.yml file of:
then
will output
N-th parent - another level
Given a sample.yml file of:
then
will output
No parent
Given a sample.yml file of:
then
will output
Last updated