File: forloop.test

package info (click to toggle)
haskell-doctemplates 0.11.0.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: haskell: 1,223; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ "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;