[development] Generate Drupal code from (textfile) specs
Earnie Boyd
earnie at users.sourceforge.net
Mon Oct 29 16:37:20 UTC 2007
Quoting Matt Farina <matt at mattfarina.com>:
> Why not YAML?
>
> One reason is readability.
>
I find this just as readable as
> Compare:
> <user id="babooey" on="cpu1">
> <firstname>Bob</firstname>
> <lastname>Abooey</lastname>
> <department>adv</department>
> <cell>555-1212</cell>
> <address password="xxxx">ahunter at example1.com</address>
> <address password="xxxx">babooey at example2.com</address>
> </user>
>
this with advantage that I know when the data ends for user and the
advantage that PHP can parse it without extra modules.
> To:
> babooey:
> computer: cpu1
> firstname: Bob
> lastname: Abooey
> cell: 555-1212
> addresses:
> - address: babooey at example1.com
> password: xxxx
> - address: babooey at example2.com
> password: xxxx
>
> Matt
>
Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/
More information about the development
mailing list