From: Jamis Buck Date: 2004-03-15T03:34:33+09:00 Subject: YAML as configuration format Has anyone successfully used YAML as a configuration file format? I'm sure it can be done--I'm not doubting that--but I'm curious as to the recommended way of handling sequences. In XML, it's pretty straightforward, but in YAML it seems a little less natural. In other words: can't be done directly in YAML. Instead (as far as my limited YAML knowledge goes) it seems like you have to do: conf: elements: - one: type - two: type - three: type I'm not a big XML fan, so I'd love to find an alternative, but there are times where YAML seems a little more awkward than XML. I'm chalking it up to my lack of YAML experience. On a related note, is there a site I can go to that details a kind of "best practices" when using YAML? I've seen _why's cookbook, and I've looked at a few other YAML sites, but I'm curious as to how YAML is (and should be) used in "real life". -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'