Re: templates in yaml
"Clark C. Evans" <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/