bgarrels / zipscript

Automatically exported from code.google.com/p/zipscript
0 stars 0 forks source link

Add XML object adapters #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
should be able to use directives to process a Document context

Ex document:
<person firstName="Joe" lastName="Hudson">
    <company name="Acme Company">
        <employee>
            <firstName>Jerry</firstName>
            <lastName>Smith</lastName>
        </employee>
        <employee>
            <firstName>Jimmy</firstName>
            <lastName>Doe</lastName>
        </employee>
    </company>
    <car>Honda</car>
</person>

Ex code:
${firstName} ${lastName} ${car}

${company.name}

[#foreach employee in company.employee]
    ${employee.firstName} ${employee.lastName}
[/#foreach]

Ex output:
Joe Hudson Honda

Acme Company

    Jerry Smith
    Jimmy Doe

Original issue reported on code.google.com by joe...@gmail.com on 30 Jul 2008 at 12:57

GoogleCodeExporter commented 9 years ago

Original comment by joe...@gmail.com on 30 Jul 2008 at 1:00