How can I do string concatenation, or string replacement in YAML?

后端 未结 7 2263
深忆病人
深忆病人 2020-12-01 08:38

I have this:

user_dir: /home/user
user_pics: /home/user/pics

How could I use the user_dir for user_pics? If I have to specify

7条回答
  •  再見小時候
    2020-12-01 09:39

    Seems to me that YAML itself does not define way to do this.

    Good news are that YAML consumer might be able to understand variables.
    What will use Your YAML?

提交回复
热议问题