From: Clark C. E. <cc...@cl...> - 2007-06-09 18:29:55
|
on Fri, 08 Jun 2007 23:04:54 +0200, Konto na WP wrote: | | In YAML I write: | | Adam: | -tel: 000000 | -adress: some street | Eve: | -tel: 11111 | -adress: some other street | Peter: | -tel: 22222 | -adress: other | | Is there some templates, so I don't have | to repeat "tel", "adress"? | | The doc would look like this: | | Adam: | -00000 | -some street | | etc. | | and I could use ['adam']['tel']. It seems that you could do this quite easily with a program in your language of choice that "pre-processes" the YAML. However, there isn't a general macro-processing language like that and I'd be hesitant to try and invent one -- a general purpose programming language will do just as well. Cheers, Clark |