19 lines
453 B
Cheetah
19 lines
453 B
Cheetah
|
<!--
|
||
|
Returns all locations from `data/locations.json`.
|
||
|
|
||
|
@params locations dict<dict>
|
||
|
@returns dict<dict>
|
||
|
-->
|
||
|
|
||
|
{{- $locations := ( dict ) -}}
|
||
|
|
||
|
{{- range $k, $v := . -}}
|
||
|
{{- if ( isset $v "lat" ) -}}
|
||
|
{{- $locations = merge $locations ( dict $k $v ) -}}
|
||
|
{{- else -}}
|
||
|
{{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html.tmpl" . ) -}}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|
||
|
|
||
|
{{- return $locations -}}
|