如何在 Configgy 中表示块列表?

发布于 2024-09-28 12:14:46 字数 69 浏览 0 评论 0原文

Configgy 支持字符串列表作为值和键/值对块。 但它似乎不支持键/值对块列表作为值。

我错过了什么吗?

Configgy supports lists 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伤痕我心 2024-10-05 12:14:46

我最终使用了嵌套块:

contacts {
  c1 {
    name = "Joe Smith"
    email = "[email protected]"
  }   

  c2 {
    name = "John Brown"
    email = "[email protected]"
  }
}

I ended up using nested blocks:

contacts {
  c1 {
    name = "Joe Smith"
    email = "[email protected]"
  }   

  c2 {
    name = "John Brown"
    email = "[email protected]"
  }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文