How to include a YAML file inside a YAML file in Ruby

后端 未结 7 1447
悲&欢浪女
悲&欢浪女 2020-12-28 16:13

Is there a custom tag in YAML for ruby to include a YAML file inside a YAML file?

#E.g.:  
--- !include
filename: another.yml

A similar que

7条回答
  •  不思量自难忘°
    2020-12-28 16:55

    1. !include is not a directive but a tag.
    2. it is not a feature of Python (or PyYAML) but a feature of the "poze" library:

      poze.configuration exposes a default directive named include.

    3. YAML specification does not define such a standard tag.

提交回复
热议问题