examples/non-html-content/templates/museums.json
{
"type": "FeatureCollection",
"features": [
{{ range $i, $m := $ }}
{{ if $i }},{{ end }}{
"type": "Feature",
"properties": {
"name": "{{ (index $m "itemLabel") }}"
},
"geometry": {
"type": "Point",
"coordinates": [
{{ (index $m "lon") }},
{{ (index $m "lat") }}
]
}
}
{{ end }}
]
}