18 lines
448 B
HTML
18 lines
448 B
HTML
<!--
|
|
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" . ) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- return $locations -}}
|