如何在另一个文件中包含 YAML 文件? [英] How can I include a YAML file inside another?

查看:27
本文介绍了如何在另一个文件中包含 YAML 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有两个 YAML 文件,A"和B",我希望将 A 的内容插入到 B 中,或者拼接到现有的数据结构中,如数组,或者作为元素的子元素,比如某个哈希键的值.

So I have two YAML files, "A" and "B" and I want the contents of A to be inserted inside B, either spliced into the existing data structure, like an array, or as a child of an element, like the value for a certain hash key.

这可能吗?如何?如果没有,是否有任何指向规范性参考的指针?

Is this possible at all? How? If not, any pointers to a normative reference?

推荐答案

不,YAML 不包含任何类型的import"或include"语句.

No, YAML does not include any kind of "import" or "include" statement.

这篇关于如何在另一个文件中包含 YAML 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆