开发者

How to represent lists of blocks in Configgy?

开发者 https://www.devze.com 2023-01-21 04:20 出处:网络
Configgy supports lis开发者_如何学Cts of strings as values and blocks of key/value pairs. But it seems it does not support lists of blocks of key/value pairs as values.

Configgy supports lis开发者_如何学Cts of strings as values and blocks of key/value pairs. But it seems it does not support lists of blocks of key/value pairs as values.

Am I missing something?


I ended up using nested blocks:

contacts {
  c1 {
    name = "Joe Smith"
    email = "jsmith@example.com"
  }   

  c2 {
    name = "John Brown"
    email = "jbrown@example.com"
  }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消