doctemplates-0.7: test/forloop.test
{ "employee":
[ { "name": { "first": "John", "last": "Doe" }
, "salary": "30000" }
, { "name": { "first": "Omar", "last": "Smith" }
, "salary": "60000" }
, { "name": { "first": "Sara", "last": "Chen" } }
]
}
.
$for(employee)$
$employee.name.first$ $employee.name.last$$sep$;
$endfor$
$for(employee)$$employee.salary$$sep$; $endfor$
.
John Doe;
Omar Smith;
Sara Chen
30000; 60000;