{{- /* For use with 7 */}} {{- /* Get LOCATION Arguments. */}} {{- $ASN := or (.Get "asn") "N/a" }} {{- $ASN_NAME := or (.Get "asn_name") "N/a" }} {{- $COUNTRY := or (.Get "country") "N/a" }} {{- $CITY := or (.Get "city") "N/a" }} {{ $location := slice (dict "type" "ASN" "value" (safeHTML (print "AS" $ASN " " $ASN_NAME))) (dict "type" "Country" "value" (print $CITY ", " $COUNTRY)) }}

Location

{{ range $location }}
 {{ .type }}: {{ .value | safeHTML }}
{{ end }}