CIA.vc
Archived Message
for Michael Marineau
Stats » Authors » Michael Marineau » Archived Message
envelope
Received 22:39 on Feb 25
Generated by Built-in Subversion repository interface version 1.0
linksUTC clock
23:52 on Jul 29, 2010

Commit Message

Author:marineam
Project:coil
Revision:225
Add new @map keyword to the coil parser.

In short it takes something like this:
a: {
    @map: [1 2 3]
    this: {
        foo: "this"
    }
    that: {
        foo: "that"
    }
    bar: ["a" "b" "c"]
}

and creates this:
a: {
    this1: {
        foo: "this"
        bar: "a"
    }
    this2: {
        foo: "this"
        bar: "b"
    }
    this3: {
        foo: "this"
        bar: "c"
    }
    that1: {
        foo: "that"
        bar: "a"
    }
    that2: {
        foo: "that"
        bar: "b"
    }
    that3: {
        foo: "that"
        bar: "c"
    }
}

Modified Files