开发者

How to represent lists of blocks in Configgy?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜