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

查看:834
本文介绍了如何在另一个文件中包含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天全站免登陆